eliya.tiram Posted January 18, 2016 Share Posted January 18, 2016 Hi,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?Thanks :) Link to comment Share on other sites More sharing options...
reportdev Posted January 19, 2016 Share Posted January 19, 2016 Hi,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 Link to comment Share on other sites More sharing options...
reportdev Posted January 19, 2016 Share Posted January 19, 2016 Hi, 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 Link to comment Share on other sites More sharing options...
eliya.tiram Posted January 19, 2016 Author Share Posted January 19, 2016 Hi,Thank you for you answer it really helped me understand what No Data section does.But now I get in the main report all the details I already have in the main report like pictures for instance, or in my case I have data in the main report but not in the sub-report so when I run this I see the data in the main report with the No Data alert that I added.Is there a way where I can return the whole main report empty just because the sub-report is empty? (the main report has a data but I don't want to show it in the case of empty query in the sub-report).Thanks a lot for your help :) Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now