Jump to content
We've recently updated our Privacy Statement, available here ×

Custom data objects(datasource) and grouping


gkari

Recommended Posts

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

  • 3 weeks later...
  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

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

  • 2 weeks later...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...