iReport, return user defined variable from sub report?


I have made the variable in ym subreport and need this variable to be returned to the calling report.
In the calling report, I click on the subreport element and go to the section where I can choose return values for the subreport, and all I can do is only return predfined parameters such as Pahe Number, Coulm Count etc.

Is there a work around, or am I not doing this properly?

Cheers Guys!

bdaetgibson's picture
Joined: Nov 15 2012 - 4:34pm
Last seen: 10 years 6 months ago

1 Answer:

Hi Blake,

So your parent report should have a system variable to return the subreport value to. Make sure it's calculation is system. Then in subreport return values you need to declare a pair

report_var = subreport_var

you need to type in the subreport_var name manually, since the parent report in not loading suberport object.

Good luck reporting and subreporting!


oesina's picture
Joined: Jun 20 2011 - 10:27am
Last seen: 10 years 2 months ago