Hi,
I have a question regarding how to fill the report with map datasource.
As known the fillreport uses the JRDatasource. The datasource could be JRBeanArrayDataSource , JRMapArrayDataSource , JRMapCollectionDataSource and many more other types.
My requirement is to use a LinkedHashMap<
String,Integer> because of same insertion order i have to display on the report with key/value pairs. I am thinking to send this
as datasource to fillReport. The questions are :
1) Which datasources i have to use to send linkedhashmap ?
2) Is it possible to send the map as datasource in Jasper ?
3) I dont have any sub-reports in my Jasper report so , how do i get the key and value from datasource and display on the report itself.
I would really appreciate if someone could guide me on this.