3

I want to pass already calculated variable from the first subreport (variable is defined is the master report) and pass it to the second subreport of the master report.

I already tried but in the second subreport I always get null value.

Please help!

mdahlman
  • 9,204
  • 4
  • 44
  • 72
Nikola
  • 624
  • 1
  • 14
  • 31
  • I am afraid you can't do that due to Jasper limitations. Only solution that comes to my mind is calculationg the variable in the master report/ – Wojciech Owczarczyk Oct 19 '11 at 15:12
  • How can I then calculate variable in the master report which depends on the result of the query (that query I use in the first subreport)? – Nikola Oct 19 '11 at 15:20

1 Answers1

1

Please take a look at this solution. It boils down to using the correct Reset Type for the group the subreport is in. Furthermore make sure you are not using iReport 3.0.0.

Please also make sure you haven't set Blank when null as noted here

Community
  • 1
  • 1
Wojciech Owczarczyk
  • 5,595
  • 2
  • 33
  • 55