Jump to content
Changes to the Jaspersoft community edition download ×

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


Recommended Posts

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

Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...