venkatabalaji Posted December 13, 2007 Share Posted December 13, 2007 How to display "No records found" message using iReport when the records are not found in the database. Link to comment Share on other sites More sharing options...
Pedja Posted December 13, 2007 Share Posted December 13, 2007 In Edit -> Report properties set "When no data" to "No-data section", and put your static text in noData band. Link to comment Share on other sites More sharing options...
venkatabalaji Posted December 14, 2007 Author Share Posted December 14, 2007 I already tried it,but I didn't get message when no records are found in databse.please help me out. Link to comment Share on other sites More sharing options...
Pedja Posted December 14, 2007 Share Posted December 14, 2007 That should work 100%. Can you attach your .jrxml? Link to comment Share on other sites More sharing options...
drallpradeep Posted December 20, 2007 Share Posted December 20, 2007 Hi, I am using iReport 1.2.2 and unable to set the "No Record Found". I also gone through your advise but where is the "No-data section". Can you explain it. Regards, Pradeepdrallpradeep@gmail.com Link to comment Share on other sites More sharing options...
venz_98 Posted December 21, 2007 Share Posted December 21, 2007 i think this feature is only available on higher version I'm using 1.2.5 and i cannot see that function also try switching to higher version, i don't know if in what version this is introduced. Link to comment Share on other sites More sharing options...
Pedja Posted December 21, 2007 Share Posted December 21, 2007 I don't know in which version this option is introduced, but in 2.0.1 the option is located in Edit -> Report properties -> tab "More...." -> and for option "When no data" select "No-data section". And the "No records found" text should go to noData band (View -> Bands -> set the noData band height, it is 0 by default). Link to comment Share on other sites More sharing options...
kchaudhry Posted December 26, 2007 Share Posted December 26, 2007 For older versions here is what you can do. 1. Create a static text field2. Right click on this field then go to Properties -> Common -> Print when expression and type the followingCode:new Boolean($V{REPORT_COUNT}.intValue()==0)3. Now go to the Static Text tab and type something likeCode:[code]Your selection has returned no results. I normally place this in my Summary band.This message will be displayed if there are no records.Hope this helps! Link to comment Share on other sites More sharing options...
venkat562 Posted March 29, 2012 Share Posted March 29, 2012 Hi , Is there any way to display "No Records Found in table" String when I use Table inside Report... I used Table inside report, It has separate TabeDataSet Data set. And Main Report has another Data set.When i run report, i get data from Query used in Main DataSet, if i dont get Data from Query used in TabeDataSet,i have to dislay "No Records Found in table" instead of blank or line for that perticular table.Problem i faced is like this...I cannot to access any Parameter/Field/Variable defined in TableDataSet to Main Report, So i cannot display any static text with "Print When Expression".Any solution/suggestion is appriciated...Thank you... 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