Using "When No Data" to control display of a book part that contains sub-reports

Jaspersoft Community 'Read-Only' as of July 8, 2022

Transition to New TIBCO Community Just Weeks Away

You can still search, review wiki content, and review discussions in read-only mode. Please email community@tibco.com with questions or issues requiring TIBCO review or response.

Hi,

I'm working with Studio version 6.2 to create a book report which, for the most part, is fine.

Something I haven't been able to do is to control printing of a book part that consists of a text element (in the page header band) and 4 sub-report elements (each in a detail band). The book part should be printed if one (or more) sub reports return data. Each sub report uses its own data source. The data source for the book part is JREmptyDataSource(); Given the descriptions of the JREmptyDataSource() and "When No Data Type" I don't think I can use these to determine whether or not the book part should be printed.

I've tried returning values from the sub reports and using a scriptlet to determine the total number of records returned to the main report. I haven't been able to use either to successfully acquire then use each sub report's REPORT_COUNT.

Any advice on how to achieve the above would be much appreciated.

Regards

Chris

cbrown@macquarietelecom.com's picture
Joined: Apr 14 2015 - 11:19pm
Last seen: 1 year 4 months ago

The more I think about this, the more I think its un-achievable.

I'd like to hear from anyone who can prove otherwise.

cbrown@macquarietelecom.com - 6 years 5 months ago

0 Answers:

No answers yet
Feedback