subreport by giving runtime parameter

0
Hi Admin/Frends,
I give reference to a servlet and also give the parameter value also .E.g
"http://localhost:8080/myapp/subreport1?emp_id=2"
It is working fine but this is hard coding of parameter passing to a subreport.
I want to generate subreports based on the value of the textfield which I hyperlinked to my subreport.
I have one textfield named $F{emp_id}
and in its hyperlinked reference expression I tried to give

"http://localhost:8080/myapp/subreport1?
emp_id=$F{emp_id}"



so that when masterreport runs whatever value it has in this "emp_id " field ,I can pass the same value to subreport to generate data.
but its showing this

http://localhost:8080/myapp/select1.do?emp_id=((java.lang.Integer)field_emp_id.getValue())


I was expecting to get the runtime value of emp_id field of masterreport.

One can say on the fly subreport generation .

Can anybody tried this thing.
Plz help me in this as soon as possible.

here is my previous query
http://www.jasperforge.org/index.php?option=com_joomlaboard&Itemid=215&f...
Post edited by: neetikamittal, at: 2006/08/02 20:50
neetikamittal's picture
Joined: Jul 25 2006 - 9:18am
Last seen: 15 years 6 months ago

1 Answer:

0
i have the same problem. Have you solved this?
whizzard's picture
Joined: Jun 18 2007 - 4:01pm
Last seen: 14 years 7 months ago
Feedback