Problem when integrating WebViewer into RCP application [message #792988] |
Tue, 07 February 2012 11:38  |
Eclipse User |
|
|
|
Hi everyone,
Here's my problem. I'm using BIRT 3.7.0 to generate a PDF report with a select query dataset. In my dataset script, I'm editing my where clause of the query with "this.textquery" statement. The report is generated and is saved to a temporary file. But when i send it to the viewer, there's no data only the embedded pictures but the PDF file has all the data in it.
I'm using this to pass the where clause from a custom java class to the script:
HashMap hm = config.getAppContext;
hm.put("string name", string);
config.setAppContext(hm);
I'm calling the WebViewer with this:
WebViewer.display(rptname,WebViewer.PDF, Browser);
Thank you
|
|
|
|
|
Re: Problem when integrating WebViewer into RCP application [message #793186 is a reply to message #793160] |
Tue, 07 February 2012 16:28   |
Eclipse User |
|
|
|
I am not sure this is the issue but you could try:
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");
emitmap.put("__overwrite", true);
myparms.put("EMITTER_OPTIONS_KEY", emitmap);
WebViewer.display(rpt, browser, myparms);
Jason
On 2/7/2012 3:57 PM, jo moreau wrote:
> I still have a problem. When i try to change the data, the viewer still
> shows the last report but my where clause string has been changed. I'm
> suspecting caching problems but I cannot find the way to set the
> forceOverwriteReport parameter to true.
> I'm using BIRT 3.7.0.
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.07224 seconds