Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
PUBLIC CLOUD
PRIVATE CLOUD
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
Birt viewer tag use with Allow Multiple Value report parameter
donwood
I'm currently running BIRT 2.3.2. My reports are part of a Websphere/Rational/Java application. I'm using the BIRT viewer to view reports by making use of the BIRT viewer JSP tags. So far, all the reports I've created have worked well; however, I now have a report with a multi-value parameter (and a corresponding IN statement in the SQL). It's this report that is giving me issues. Here's what I have and how it's working
This is in my SQL:
/* BIND AND T046.RSPNS_CNTY_CD IN ( $counties ) */
counties is a Multi-value Report Parameter
In the initialize of the report, I have this:
CustomFunctions.BindParameters(reportContext)
On my JSP page, inside the <birt:view> tag I have the following which is used to set the counties report parameter:
<birt:param name="counties" value="<%= cntyCd %>"></birt:param>
(cntyCd is an ArrayList of Java Integer objects, each holding a county code. These are set in my application.)
However, when I run the report from the Websphere application, I receive the following error:
org.eclipse.birt.report.service.api.ReportServiceException: Required parameter counties is not set
Am I doing something wrong? This same methodology works if I'm using a non-multi-value report parameter. It only fails when the parameter is checked as Allow Multiple Values.
If this is a bug, has it been fixed in 2.5 or 2.6?
Thanks for any help you can offer.
-Don
Find more posts tagged with
Comments
mwilliams
Hi Don,
Have you done a search of the bug list yet?
http://www.birt-exchange.org/org/resources/bug-reporting/
I have not heard of this as an issue before, but that doesn't mean it's not a bug that doesn't affect many. If you don't find a bug reported, you might try downloading the latest BIRT version and seeing if you encounter the same issue. If you do, then log a bug for it.
donwood
<blockquote class='ipsBlockquote' data-author="'mwilliams'" data-cid="70091" data-time="1289238142" data-date="08 November 2010 - 10:42 AM"><p>
Hi Don,<br />
<br />
Have you done a search of the bug list yet?<br />
<br />
<a class='bbc_url' href='
http://www.birt-exchange.org/org/resources/bug-reporting/'>http://www.birt-exchange.org/org/resources/bug-reporting/</a><br
/>
<br />
I have not heard of this as an issue before, but that doesn't mean it's not a bug that doesn't affect many. If you don't find a bug reported, you might try downloading the latest BIRT version and seeing if you encounter the same issue. If you do, then log a bug for it.<br /></p></blockquote>
<br />
Thanks Michael for your reply.<br />
<br />
Yes, I've searched the Bugs List and found 2 entries related to this:<br />
<br />
<a class='bbc_url' href='
https://bugs.eclipse.org/bugs/show_bug.cgi?id=244880'>First
bug - notated as fixed</a><br />
<a class='bbc_url' href='
https://bugs.eclipse.org/bugs/show_bug.cgi?id=272306'>Reopened
bug</a><br />
<br />
The first bug indicated that the issue was resolved but apparently it was not, thus the follow-up bug.<br />
<br />
The second bug states that this issue is resolved in BIRT 2.5. We are making use of 2 projects in Rational in order to make use of BIRT in our application. One contains the BIRT report designs. The other contains the BIRT viewer and its necessary jar files. If we kept the report designer (and subsequent designs) in BIRT 2.3.2, but upgraded the jar files in the "viewer" project to BIRT 2.5, first of all, would this work, and second, would this fix the "allow multiple value" error?<br />
<br />
Any help would be greatly appreciated.
mwilliams
If the question is, do reports made in 2.3.2 work in the 2.5.2 viewer, the answer is most will. There are always changes when a new version comes out, so your best bet will probably be to download the 2.5.2 viewer project and deploy it to see if your report designs work as expected in it. If there are issues in your designs in the upgrade, you'd have to upgrade the reports to avoid these errors.