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
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