Reputation: 7549
The back end of Java application can return a series of tables, every table is with the same structure, just like search for "information of schools which in specific area" can return dynamic amount of schools with its information, now we want to make each school detail as a table.
-School A-
=============================
Name | Address | Student Name
-School B-
=============================
Name | Address | Student Name
....
-School N-
=============================
Name | Address | Student Name
Then can we use HashMap in Jasper to save the trouble of sub report and still keep everything dynamic ? Any hint is grateful.
Upvotes: 0
Views: 737
Reputation: 2583
Can you return all the data in one table (you say that thet tables you now get have the same structure)?
If not directly from a database then write your own data source class that would wrap all the tables into one data source for Jasper.
Then put the data to the detail of the report and tell Jasper to do grouping on School column.
Upvotes: 1