|
Re: WebViewer.display(String, Browser, Map) [message #821679 is a reply to message #821552] |
Thu, 15 March 2012 17:20 |
|
Here is an example:
HashMap myparms = new HashMap();
HashMap emitmap = new HashMap();
myparms.put("SERVLET_NAME_KEY", "frameset");
myparms.put("FORMAT_KEY", "html");
//myparms.put("RESOURCE_FOLDER_KEY", "c:/myresources");
myparms.put("ALLOW_PAGE", "true");
myparms.put("SHOW_PARAMETER_PAGE", "false");
//myparms.put(WebViewer.MAX_ROWS_KEY, "5");
emitmap.put("__toolbar", "false");
myparms.put("EMITTER_OPTIONS_KEY", emitmap);
//myparms.put("MAX_ROWS_KEY", "500");
WebViewer.display(rpt, browser, myparms);
the emitter map allows you to set parameters for the url. These could
be report parameter values or viewer url parameters like __toolbar. For
options with url parameters look at:
http://www.eclipse.org/birt/phoenix/deploy/viewerUsageMain.php#parameters
That said if you want to customize the toolbar you will need to modify
the jsp fragment for the viewer or the js files for the viewer.
Jason
On 3/15/2012 10:05 AM, Chimbu Aravind wrote:
> Hi,
>
> Am trying to deploy a report in an RCP application using
> WebViewer.display(...)
>
> I need to customize the WebViewer a bit; like top ribbon should only
> have print and no other options.. etc..
>
> I was thinking of using WebViewer.display(String, Browser, Map) for
> this. Is that the correct method?
>
> Also could not find any simple reference from where I can understand how
> to build the Map for my purpose. Any help be be greatly appreciated.
>
> Chimbu
|
|
|
|
Powered by
FUDForum. Page generated in 0.03233 seconds