iReport, return user defined variable from sub report?

0

Hey,

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

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

1 Answer:

0

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!

Olga

oesina's picture
225
Joined: Jun 20 2011 - 10:27am
Last seen: 6 years 3 months ago
Feedback
randomness