how to return blank page when sub-report query is empty
Posted on January 18, 2016 at 6:59am
I have a report with few sub-reports and pictures ect. now I'm looking for a way to return an empty page or throw a message of empty report just in case one of the sub-reports query is returning empty set.
Can Jasper do it? if so, how?
Posted on January 19, 2016 at 9:41am
- Add a No Data section to the sub-report with the text field "No data found for the selected criteria"
- From the report properties, select No Data Section for the Option When No Data Type