Master report and subreport communication

Posted by Dave Jarvis on Stack Overflow See other posts from Stack Overflow or by Dave Jarvis
Published on 2010-04-15T23:10:59Z Indexed on 2010/04/15 23:13 UTC
Read the original article Hit count: 292

Filed under:
|

How do you determine whether the content for the detail page being displayed is filled by a specific subreport?

For example, consider two subreports on the same master report, using different detail bands:

  • Detail 1
  • Detail 2

The header on the master report should show certain fields on pages where the subreport in the Detail 2 band is printed.

A Return Value from the subreport in the Detail 2 band only seems to be set after the report has finished, even though the Reset type for the variable (in both the master and the subreport) is set to Page. (Setting it to Report also does not help.)

© Stack Overflow or respective owner

Related posts about ireport

Related posts about jasper-reports