Reputation: 16367
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
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:
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:
Upvotes: 4
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