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)
Passing parameter values to JSP Page from BIRT Report
vsub
HI,
We have requirement to pass two parameter values from BIRT report to JSP Page.
Can we pass parameter values of BIRT page to JSP Page, i am looking for some examples.
Regards
vs
Find more posts tagged with
Comments
mwilliams
Hi vs,
Can you explain a little more about what you're trying to do? I would guess you could easily pass them through the URL.
ankitK
Hi,
I have passed parameters using URL to BIRT, but was wondering if we can also POST parameters instead of appending it to a query. I thinking on these lines as their is the 4000 character limit in a URL.
Currently I have a report having around 50 columns, I am giving user a JSP page which will enable s/he to select the columns the user would like to see and submit the page.
Behind the scenes, I redirect user to a URL which is in the form of :
http://localhost:8080/frameset?__report=marketWiseRollupReportPhase2.rptdesign¶mSelectList=A_IssueCount¶mSelectList=A_Sum¶mThreshMin=0_0¶mThreshMin=1_0¶mThreshMax=0_100¶mThreshMax=1_100¶mMarket=-1&__format=html&__overwrite=true&__locale=en_US&__svg=false&__designer=false&__pageoverflow=0&__masterpage=true
This works fine and the User sees only two columns : A_IssueCount and A_Sum.
As "
http://localhost:8080/frameset?__report="
; is constant, i just have to append the reportName and the parameters Names and then HTML Encode them and create a URL.
Now, can this be converted into a POST request where I submit this form to a BIRT report.
ankitK
After further experimenting i was able to post my JSP to
http://localhost/frameset
with all the required parameters in a POST request, but the BIRT Viewer is saying that the required parameters are not being passed and is throwing an exception. Interestingly it is also not giving me the auto-generated prompt to put in required parameters (which indicates that the parameters are being passed but are being accepted as null or something).
Then i converted the action of the form to "GET" from "POST" and the BIRT report worked.
Can you please let me know if BIRT will only pick up parameters from the queryString and not from the request post parameters.
Regards,
Ankit
ankitK
After still more experimentation I found that the parameters like multi-select lists are not getting recognized properly by BIRT, but the simple String parameters are getting recognized without any issues.
So I converted all the list type parameters to a CSV separated list and BIRT report recognized them easy.
I changed the code on the BIRT side to take simple parameter instead of list like parameter.
I hope this is either taken as an enhancement so that BIRT can support list-like parameter through POST request.
mwilliams
Sorry for the delay in response. If you'd like to suggest an enhancement for this, you can do so at:
http://www.birt-exchange.org/org/resources/bug-reporting/