| 
| Problems with WebViewer [message #259335] | Wed, 24 October 2007 12:47  |  | 
| Eclipse User  |  |  |  |  | Originally posted by: sergiogomes.uxs.pt 
 I have a RCP application, when i call a PreviewReport render a report
 using this commands...
 
 task.addScriptableJavaObject("clients", collectiondocumentos);
 task.run();
 task.close();
 browser.setText(bos.toString());
 
 and it works fine.
 
 But i wanna render my report with in BIrt Viewer...i try this...
 
 WebViewer.display(reportName , WebViewer.HTML, browser, "frameset");
 
 but the report only show the name of columns no data is set... why?
 
 i got this error...
 
 A BIRT exception occurred: Error evaluating Javascript expression.
 Script engine error: ReferenceError: "clientes" is not defined.
 (DataSet[Campos clientes].__bm_OPEN#2)
 Script source: DataSet[Campos clientes].__bm_OPEN, line: 1, text:
 __bm_OPEN(). See next exception for more information.
 |  |  |  | 
| 
| Re: Problems with WebViewer [message #259351 is a reply to message #259335] | Wed, 24 October 2007 15:55  |  | 
| Eclipse User  |  |  |  |  | Originally posted by: jasonweathersby.alltel.net 
 Sergiogomes,
 
 The reason for this is the WebViewer utility class has no public method
 for adding to the application context ojbect.  Your REAPI code does.
 
 If you look at this wiki page this is how it is done with the Web Viewer
 deployed to a normal app server.
 http://wiki.eclipse.org/Adding_an_Object_to_the_Application_ Context_for_the_Viewer_%28BIRT%29
 
 You may be able to modify the WebViewer class to incorporate similar
 logic.  Look at the createurl private method in the class.  You may be
 able to add a jsp page to the WebViewer that is called when you call
 your display method and then forwards to your report.
 
 
 Also you may want to log a bugzilla entry for this.
 
 Jason
 
 sergiogomes wrote:
 > I have a RCP application, when i call a PreviewReport render a report
 > using this commands...
 >
 >     task.addScriptableJavaObject("clients", collectiondocumentos);
 >     task.run();
 >     task.close();
 >     browser.setText(bos.toString());
 >
 > and it works fine.
 >
 > But i wanna render my report with in BIrt Viewer...i try this...
 >
 >     WebViewer.display(reportName , WebViewer.HTML, browser, "frameset");
 >
 > but the report only show the name of columns no data is set... why?
 >
 > i got this error...
 >
 >  A BIRT exception occurred: Error evaluating Javascript expression.
 > Script engine error: ReferenceError: "clientes" is not defined.
 > (DataSet[Campos clientes].__bm_OPEN#2)
 >  Script source: DataSet[Campos clientes].__bm_OPEN, line: 1, text:
 > __bm_OPEN(). See next exception for more information.
 |  |  |  | 
Powered by 
FUDForum. Page generated in 0.03412 seconds