MyEclipse Forums
This thread has been locked & this forum has been archived.
Please post new topics to Feature Requests
View previous topic Printable version Log in to check your private messages View next topic
Author Message
gme58
Post subject: birt reports  PostPosted: Oct 18, 2011 - 07:40 PM
Registered Member
Registered Member


Joined: Feb 03, 2010
Posts: 34

how can you pass a jsp parameter to a birt report
 
 View user's profile Send private message  
Reply with quote Back to top
support-swapna
Post subject:   PostPosted: Oct 19, 2011 - 05:15 AM



Joined: Nov 11, 2010
Posts: 2499

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.

_________________
Swapna
MyEclipse Support
 
 View user's profile Send private message  
Reply with quote Back to top
gme58
Post subject: thanks  PostPosted: Oct 24, 2011 - 07:19 PM
Registered Member
Registered Member


Joined: Feb 03, 2010
Posts: 34

thanks for the help
 
 View user's profile Send private message  
Reply with quote Back to top
support-swapna
Post subject:   PostPosted: Oct 25, 2011 - 09:31 AM



Joined: Nov 11, 2010
Posts: 2499

gme58 ,

Glad that we could be of help.
Do let us know if you have any other issues.

_________________
Swapna
MyEclipse Support
 
 View user's profile Send private message  
Reply with quote Back to top
gme58
Post subject:   PostPosted: Oct 25, 2011 - 02:57 PM
Registered Member
Registered Member


Joined: Feb 03, 2010
Posts: 34

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>
 
 View user's profile Send private message  
Reply with quote Back to top
support-tony
Post subject:   PostPosted: Oct 26, 2011 - 11:06 AM



Joined: Mar 09, 2011
Posts: 919

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.

_________________
Tony
MyEclipse Support
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 6 Hours
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2004 The PNphpBB Group
Credits