yurish Posted August 23, 2007 Share Posted August 23, 2007 Hi! I'm new to iReport. I have such question: i need to count all records, which were done in my report. How can i do it? Link to comment Share on other sites More sharing options...
lordy86 Posted August 23, 2007 Share Posted August 23, 2007 if you mean every row then here we go: in my report i am printing city details, so each row represents a city+ number of employees, i am counting based on the city_name field. - create a new variableVariable name -- whatever you want i.e totalclass type - java.lang.integercalculation type - CountReset Type - ReportIncrement type - none variable expression - $F{city_name} - will be different for you obviously, but is the rows you want to count. hope this helps, i am new to iReports myself but learning fast, hopefully looking at other peoples problems will help me learn quicker!Post edited by: lordy86, at: 2007/08/23 14:15 Link to comment Share on other sites More sharing options...
svenn Posted August 23, 2007 Share Posted August 23, 2007 There is a variable built into each report called REPORT_COUNT. It contains the total number of records processed from your data source. If you are not using a Print when Expression on your detail band this will give you the value that you are looking for. Link to comment Share on other sites More sharing options...
yurish Posted August 24, 2007 Author Share Posted August 24, 2007 Thanks! You really helped me! 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