Get Sub Reports Details in Master Report.

0

I have a main report with 4 sub reports. Is it possible to get the details of sub report in main report like name of subreport or id or something.

srivathsangayathri's picture
Joined: Feb 28 2020 - 3:02am
Last seen: 1 week 1 day ago

suppose Iam having a variable to pass the name of sub report which is being loaded. But the variable is evalauted at the end so I get null in main report first time.How to fix this

srivathsangayathri - 1 week 4 days ago

1 Answer:

1

Yes Look at return values for a subreports http://jasperreports.sourceforge.net/schema.reference.html#returnValue .  This lets you map values between the subreport and parent report, you can send back whatever you'd like. You'll need to map a variable in your subreport to a variable in your parent report, and may need to mess with 'evaluation times' wherever you display those values, but this is what you're looking for. Lot's of examples online if you have issues with this.

darth_fader's picture
Joined: Mar 7 2010 - 9:45pm
Last seen: 1 day 13 hours ago
Feedback
randomness