gkari Posted May 21, 2010 Share Posted May 21, 2010 Hi All,We use custom java objects for our reports. However, the group feature does not group them correctly. The generated report shows several small groups rather than 3 main groups.(which is expected)Can anyone confirm that the grouping feature works with custom data objects as the datasource.Thanks and Regards,GKAri Link to comment Share on other sites More sharing options...
lucianc Posted June 7, 2010 Share Posted June 7, 2010 In order to make sure that you have a single appearance of each group you'll have to make sure that the records are ordered by the value used for grouping. JasperReports doesn't do that automatically, it only detects when the value changes from one record to the next.You can use sort fields to order your data in the report.HTH,Lucian Link to comment Share on other sites More sharing options...
gkari Posted June 17, 2010 Author Share Posted June 17, 2010 Thanks Lucian!I wrote my own custom sorter to order the records and it works fine.Regards,GK Ari 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