Jump to content
JasperReports Library 7.0 is now available ×

Group by a column?


2005 IR Help

Recommended Posts

By: Sumedh - stamhane

Group by a column?

2004-07-11 03:01

Hi all,

 

How do I group by a certain column if I'm using a JRTableModelDatasource? Can I set something on the <reportElement> in XML?

 

Right now I've written a custom DS to do this, but I was wondering whether an easier way exists.

 

Thanks,

Sumedh

 

 

 

 

By: supportsib - supportsib

RE: Group by a column?

2004-07-11 03:37

Check this link

http://java.sun.com/docs/books/tutorial/collections/interfaces/order.html

 

 

 

 

By: Chuck Deal - cdeal

RE: Group by a column?

2004-07-12 05:10

In order to group in JasperReports, you need to use an appropriately sorted DataSource.

 

Once you have sorted your DS, then you can use the <Group> tags effectively.

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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...