Skip to main content



      Home
Home » Archived » BIRT » Global Variables not working in Web Viewer
Global Variables not working in Web Viewer [message #1128379] Mon, 07 October 2013 12:23 Go to next message
Eclipse UserFriend
Hi,

I created Global Variables using Report Designer, when I use the preview option the values assigned to the variables after some calculations during rendering appear correctly.

However when I upload the rptdesign file Web viewer the result is different the default value which was assigned when the variable was created appears.

Is there any configuration I have to do on the Web viewer?

Regards
Re: Global Variables not working in Web Viewer [message #1129063 is a reply to message #1128379] Tue, 08 October 2013 04:46 Go to previous message
Eclipse UserFriend
As you describe the problem it looks like you assign values for your global variables in "onRender" events, or they are used by javascript expressions declared in render events.
To confirm this, in the URL of the WebViewer replace "frameset" or "run" with "preview". For example if your report call is:

http://localhost:8080/birt/frameset?__report=myreport.rptdesign?myparam=value1

Try this:

http://localhost:8080/birt/preview?__report=myreport.rptdesign?myparam=value1

It should work with the second URL, let me know. Using "onRender" events requires a good understanding of the general generation process of a BIRT report, in particular the difference between a runAndRender task (used for preview) and a run "and then render" task.

[Updated on: Tue, 08 October 2013 04:48] by Moderator

Previous Topic:Drill-down report in java swing
Next Topic:Birt Parameter Error
Goto Forum:
  


Current Time: Sat Jul 05 02:20:38 EDT 2025

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

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

Back to the top