Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » Why is WebViewer.display(String, String, Browser, String) deprecated?
Why is WebViewer.display(String, String, Browser, String) deprecated? [message #834817] Mon, 02 April 2012 12:41 Go to next message
Alexey Romanov is currently offline Alexey RomanovFriend
Messages: 263
Registered: May 2010
Senior Member
WebViewer.display(String, String, Browser, String) is deprecated. What is the non-deprecated equivalent?
Re: Why is WebViewer.display(String, String, Browser, String) deprecated? [message #835725 is a reply to message #834817] Tue, 03 April 2012 15:43 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

Use something like the following:

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", "false");
myparms.put("SHOW_PARAMETER_PAGE", "false");
//myparms.put(WebViewer.MAX_ROWS_KEY, "5");

emitmap.put("addtorul", URLEncoder.encode("addtourl", "UTF-8"));
myparms.put("EMITTER_OPTIONS_KEY", emitmap);
//myparms.put("MAX_ROWS_KEY", "500");
WebViewer.display(reportName, browser, myparms);

//WebViewer.display(reportName, myparms);


Jason

On 4/2/2012 8:41 AM, Alexey Romanov wrote:
> WebViewer.display(String, String, Browser, String) is deprecated. What
> is the non-deprecated equivalent?
Re: Why is WebViewer.display(String, String, Browser, String) deprecated? [message #835811 is a reply to message #835725] Tue, 03 April 2012 17:55 Go to previous messageGo to next message
Alexey Romanov is currently offline Alexey RomanovFriend
Messages: 263
Registered: May 2010
Senior Member
And there are no constants for keys of the params map WebViewer understands? That's unfortunate.
Re: Why is WebViewer.display(String, String, Browser, String) deprecated? [message #835825 is a reply to message #835811] Tue, 03 April 2012 18:15 Go to previous message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

Yes some of them have constants. I should have used them in the example:
ie
WebViewer.SHOW_PARAMETER_PAGE_KEY

Jason

On 4/3/2012 1:55 PM, Alexey Romanov wrote:
> And there are no constants for keys of the params map WebViewer
> understands? That's unfortunate.
Previous Topic:data string to time in computed column
Next Topic:dynamic column show/hide at client side script
Goto Forum:
  


Current Time: Thu Apr 25 10:52:04 GMT 2024

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

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

Back to the top