Skip to content

Instantly share code, notes, and snippets.

@jonny64
Created April 23, 2013 12:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jonny64/5443077 to your computer and use it in GitHub Desktop.
Save jonny64/5443077 to your computer and use it in GitHub Desktop.
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment