Skip to content

Instantly share code, notes, and snippets.

sample data for report:
[{name => 'gustav', country => 'germany}, {name => 'james', country => 'usa'}]
we need to implement definition here:
<datasetRun subDataset="Table Dataset 1">
<dataSourceExpression>
<![CDATA[new net.sf.jasperreports.engine.data.JRBeanCollectionDataSource(sample_data_here)]]>
</dataSourceExpression>
</datasetRun>