MyEclipse: birt reports

gme58 - Oct 18, 2011 - 07:40 PM
Post subject: birt reports
how can you pass a jsp parameter to a birt report
support-swapna - Oct 19, 2011 - 05:15 AM
Post subject:
gme58 ,

Parameters can be passed as URL parameters by entering the &parmname=value syntax, passed in a html form, or passed using the jsp:parm tag.

Take a look at these links :
http://www.birt-exchange.org/org/devshare/designing-birt-reports/1383-how-to-pass-parameter-to-birt-report-from-jsp/
http://stackoverflow.com/questions/3036602/how-do-you-pass-a-date-value-to-birt-report-via-querystring

Hope this helps.
gme58 - Oct 24, 2011 - 07:19 PM
Post subject: thanks
thanks for the help
support-swapna - Oct 25, 2011 - 09:31 AM
Post subject:
gme58 ,

Glad that we could be of help.
Do let us know if you have any other issues.
gme58 - Oct 25, 2011 - 02:57 PM
Post subject:
hi i have the parameter set up in the jsp page as bellow

<birt:viewer id="birtViewer" reportDesign="reports/new_report_4.rptdesign"
pattern="run"
height="600"
width="1000"
format="html"
scrolling="yes"
showParameterPage="false">
<birt:param name="user_id" value='gbreen'></birt:param>
</birt:viewer>

and try to pass it to the birt as below with no luck


<structure>
<property name="name">user_id</property>
<property name="dataType">string</property>
<property name="position">1</property>
<property name="isInput">true</property>
<property name="isOutput">false</property>
</structure>
support-tony - Oct 26, 2011 - 11:06 AM
Post subject:
gme58,

You need to link the query parameter with your report parameter.

Double click on your data set then go to the Parameters view, where you declared your user_id query parameter. Now click on the user_id parameter and click Edit. There is a field there, "Linked to Report Parameter". Select your "user_id" report parameter and you should be all set.

Please let us know if this works for you.
All times are GMT - 6 Hours
Powered by PNphpBB2 © 2003-2004 The PNphpBB Group
Credits