Jump to content
We've recently updated our Privacy Statement, available here ×

subreport by giving runtime parameter


neetikamittal

Recommended Posts

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&func=view&id=382&catid=9

Post edited by: neetikamittal, at: 2006/08/02 20:50

Link to comment
Share on other sites

  • 10 months later...
  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...