Jump to content
Changes to the Jaspersoft community edition download ×

subreport runtime parameter passing problem


neetikamittal

Recommended Posts

Hi Frends,

my earlier query is

http://www.jasperforge.org/index.php?option=com_joomlaboard&Itemid=215&func=view&id=518&catid=9

 

 

so anybody can help me in passing the runtime fields values to subreport .

 

Plz help me.

 

I tried to give something like

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

 

This emp_id is added as parameter in both subreport amd masterreport.

 

But In my servlet I am getting value of emp_id as ((java.lang.Integer)field_emp_id.getValue())

I was expecting to get yje runtime value of emp_id of masterreport.

 

in 'hyperlinked ref. expression ' field .

but if i am giving

"http://localhost:8080/myapp/subreport?emp_id=2"

Its working but this is hardcoding and its generating subreport related to emp_id =2 only.

I want to generate subreports of employee on whose emp_id I will click .

 

Plz help .

servlet code is given for reference

[file name=servlet.txt size=2669]http://www.jasperforge.org/components/com_joomlaboard/uploaded/files/servlet.txt[/file]

Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

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