Jump to content
Changes to the Jaspersoft community edition download ×

How to display report book elements when no data in returned in main query?


Recommended Posts

Hi All,

I am trying to run a main query in the Report Book function of Jasper studio. I have many reports in this report book. Some reports are passed fields as parameters from main query and others are not (these reports have independent queries and just uses same parameters passed from main). When the main query does not return data it will show the report book as blank. I still need it to run the reports in the book that have independent queries.

Is there any way to get around report book showing up blank when its query returns no data?


Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Have you already tried to adjust the "WhenNoDataType" to "All Sections NoDetail"?

Also you could add a dummy group to the Main-Book Report and place all your "independet" reports to that group instead of the default content (what is the detail band). I guess (!) these DummyGroup bands should than be rendered because of "AllSectionsNoDetail" type. (but not sure... I'm not familiar with books until now)

Otherwise just use an EmptyDataSource for Main-Book.-Report and use the former Main-Query as SubQuery and pass these to the dependet Reports.

This it, what I'd try first 

hth + regards


Link to comment
Share on other sites

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...