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)
Capturing values from report parameters in the Report
bhagyaa
If we want to capture the multiple values entered vai Report parameters with Multiple values Option in a List Box in the Report.How Can we do this?
Find more posts tagged with
Comments
bhagyaa
I need to Capture the values selected vai list box with Multiple values Option to be displayed on the header of the report with comma seperation.
Can any Plz help on this.
Thanks ij advance.
devp
Hi bhagya<br />
Here is a piece of code you can use to get the parameter values:<br />
<br />
<pre class='_prettyXprint _lang-auto _linenums:0'>
Object o = reportContext.getParameterValue("paramName");
Object[] headers = (Object[])o; // for multiple values.
</pre>
<br />
Iterate through the object array and concatenate the values.<br />
You can do this in the 'initialize' event of the report.<br />
<br />
<br />
cheers<br />
devp
birtq
Hi
Please find the report as an attachment..hope this is what u r looking for.
Regards,
birtq
Navanethan
Hi ,
I am not able to open the file what you have attached.
FYI: I am using BIRT RCP designer 2.2
Please help me in this case.
Thanks in advance.
~Navanethan
mwilliams
Hi Navanethan,
That report was designed in 2.3.0. You should be able to go to the XML Source file and change the designer version information to match your designer version and be able to open the report design then. If you have troubles with this, let me know.