nikitha Posted October 21, 2008 Share Posted October 21, 2008 Hi All,I have a requirement to display an error message in a template designed using Ireport 2.0v.I have created a template and also displaying the data from database successfully by passing some parameters to report query.My issue is, when i passs some wrong data to report( wrong parameters) to report, by default it is displaying an empty page with out any data.if we pass correct parameters, the report is getting the output with results.But, i need to disply a message to user i.e,No Records to Display.Is this possible using ireport.Please help meRegards,Naveen Link to comment Share on other sites More sharing options...
svenn Posted October 21, 2008 Share Posted October 21, 2008 There are a few different way to do this. Newer version have a no data section. For v2.0 do the following1. In one of your unused bands expect for the deatil band. Place a field with the text that you want to display.2. In the bands print when expressionnew Boolean($V{REPORT_COUNT}.intValue()==0)3. In Edit -> Report Properties -> More tabSet "When no data" to "All sections, no details". Link to comment Share on other sites More sharing options...
nikitha Posted October 22, 2008 Author Share Posted October 22, 2008 Thank you for your valuable reply, i got the above message.And, can you give me, where can i find no data section in the newer version of IReport.Thanks and Regards,Naveen Chanda. 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