i have a jasper .jrxml template file and a parameter defined like this <parameter name="relativesList" class="java.util.List"/>. i would like to use this parameter as a datasource for a list, but it doesn't work. The list is always empty. This is how i set the datasource.
Using a parameter as a datasource
in Products
Posted
i have a jasper .jrxml template file and a parameter defined like this <parameter name="relativesList" class="java.util.List"/>. i would like to use this parameter as a datasource for a list, but it doesn't work. The list is always empty. This is how i set the datasource.
<dataSourceExpression><![CDATA[new net.sf.jasperreports.engine.data.JRMapCollectionDataSource($P{relativesList})]]></dataSourceExpression>
And this is how i define the dataset.