JasperReport : display multiple lists in one report

Viewed 289

I want to display multiple lists in my report. For example I have these three lists of DTOs to display :

Total vehicles : 3  
Porsche  
Ferrari  
Tesla  

Total vegetables : 2  
Potatoes  
Carot  
Salad  

Total fruits : 3  
Banana  
Apple  
Lemon

How can I display several lists?
I am used to display only one list by filling the report with this instruction (on java side) :

JasperPrint jp = JasperFillManager.fillReport(jr, new HashedMap(), new JRBeanCollectionDataSource(vegetables,false));

Then I display this list in a detail band by displaying the properties of the DTO.

Do I need to use several reports that I concatene in one report? Or can I add multiple lists in a single report?
Thank you

0 Answers
Related