Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » BIRT » WebViewer.display(String, Browser, Map)(Question deployment in RCP)
WebViewer.display(String, Browser, Map) [message #821552] Thu, 15 March 2012 14:05 Go to next message
Chimbu Aravind is currently offline Chimbu AravindFriend
Messages: 4
Registered: March 2012
Junior Member
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
Re: WebViewer.display(String, Browser, Map) [message #821679 is a reply to message #821552] Thu, 15 March 2012 17:20 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

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
Re: WebViewer.display(String, Browser, Map) [message #822034 is a reply to message #821679] Fri, 16 March 2012 04:49 Go to previous message
Chimbu Aravind is currently offline Chimbu AravindFriend
Messages: 4
Registered: March 2012
Junior Member
Thanks a million Jason..

I will use this example and go through the link

Chimbu
Previous Topic:Installation Error - birt-rcp-report-designer-2_5_0
Next Topic:Use multiple schema in a birt report
Goto Forum:
  


Current Time: Thu Nov 27 23:32:34 GMT 2014

Powered by FUDForum. Page generated in 0.01557 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software