Skip to main content



      Home
Home » Archived » BIRT » Parameter passing for a scripted DataSource
Parameter passing for a scripted DataSource [message #233502] Wed, 11 April 2007 09:45 Go to next message
Eclipse UserFriend
Originally posted by: kondraguntla.gmail.com

Hi,

Can I pass a parameter from report to a ScriptedDataSource?

Details:

1. Created a private variable in a Java Class with constructor to
initialize the variable.

2. Using that variable I am deciding which dataset to be sent to the
report.

Now, In the "open" method of the report, I am trying to create an instance
of the class passing a parameter to initialize the private variable but
could not do it.

Because I am pretty much new to BIRT, I may not be doing it right way. Can
you please suggest how to acahive the above.

Thanks in advance.
Krishna.
Re: Parameter passing for a scripted DataSource [message #233569 is a reply to message #233502] Wed, 11 April 2007 10:52 Go to previous message
Eclipse UserFriend
Originally posted by: kondraguntla.gmail.com

Hello,

I found the solution. You can use the params["xxx"] to get the report
parameter and pass it to the function instead of constructor.
Previous Topic:error to run downloaded from BIRT Design Engine API
Next Topic:out of memory rendering 38000 records
Goto Forum:
  


Current Time: Wed May 07 15:28:38 EDT 2025

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

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

Back to the top