DonX
DonX

Reputation: 16367

Multiple detail band in JasperReports

I want to show multiple detail section in my jasper report. How to add multiple detail bands in JasperReports? For details band I am passing collection from my java class. So if I have multiple detail band how to pass the different collections to different detail band.

Can some one provide help on this

Upvotes: 5

Views: 38698

Answers (3)

mohdajami
mohdajami

Reputation: 9680

Multiple "Detail" bands is not possible. You can add "Group Bands" before and after the Detail band though.

UPDATE
For the upper part of the report:

  • The Detail Band is the one with the Product Line, Name, Amount ... etc.
  • The Group surrounding the Detail, containing the Branch is one level upper group.
  • The Group surrounding the Branch Group is the State Bang, its the top level.

First make two groups, call one of them "State" and the other "Branch", When writing your query make sure you order the results by State, then Branch. If you do that, Jasper will make sure to group the results exactly as in the snapshot.

Check this snapshot, you should make the report something like this:

alt text

Upvotes: 4

Kuldip Shah
Kuldip Shah

Reputation: 149

it's seems that this question was asked long time in past. Now with new JasperReports version, multiple detail bands are possible. Please refer to JasperReports download for latest revision.

Upvotes: 14

user132371
user132371

Reputation: 221

You should use subreports.

Upvotes: 6

Related Questions