Finally, I did it.
In fact, the data source did not arrive in the report. So I changed the property when there is no data for all partitions, no data ...
Then I passed the collection variable in which I got the subregister entries.
Using parameters.put("shape_data_all", allShape_Caliberation);
Then I created a parameter in the main report. And changed his class to java.Util.Collection .
Then, in the subreport connection type= property, use a data source expression
Data source output new net.sf.jasperreports.engine.data.JRBeanCollectionDataSource($P{shape_data_all})
Then we added the fields to the subtitle, the same as my bean properties.
Thanks.
source share