Skip to main content



      Home
Home » Archived » BIRT » Problems with WebViewer
Problems with WebViewer [message #259335] Wed, 24 October 2007 12:47 Go to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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.
Previous Topic:Show TOC automatically when report start
Next Topic:dynamic parameter name
Goto Forum:
  


Current Time: Mon Apr 28 03:13:16 EDT 2025

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

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

Back to the top