Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
Scripted Dataset -- setParamterValue() issue
kishore_r
My report uses a scripted dataset. I am trying to pass in a parameter to the report at runtime.
Simple and straightforward..
IRunAndRenderTask task = birtReportEngine
.createRunAndRenderTask(design);
task.setParameterValue( "employeeId", employeeId );
and In my report design, the dataset's open method.
employeeId = inputParams["employeeId"];
This gives me a null value for the employeeId.
However if I use the deprecated method
task.addScriptableJavaObject("employeeId", employeeId);
Then I can just refer to the employeeId in my report design and it works fine.
Any ideas as to why the setParameterValue() is not working?
I am using BIRT v 2.2.2
Thanks in advance.
Find more posts tagged with
Comments
mwilliams
Hi kishore_r,<br />
<br />
Not sure exactly why it wouldn't work. It sounds like a bug to me. I found this bug regarding the method in question not working, but it was apparently reported in 2.3.0, but could be related to your issue in 2.2.2 as well. It is fixed in the latest release.<br />
<br />
<a class='bbc_url' href='
https://bugs.eclipse.org/bugs/show_bug.cgi?id=223304'>https://bugs.eclipse.org/bugs/show_bug.cgi?id=223304</a><br
/>
<br />
If I find any other reasoning, I'll post back in here.