Jump to content
Changes to the Jaspersoft community edition download ×

JasperReports JRXML Using variable/parameter JavaCollection as datasource


tsyalon

Recommended Posts

I'm trying to embed JRBeanJavaCollectionDataSource in jrxml. I want to display table. In jrxml I wrote:

<datasetRun subDataset="Table Dataset 1">    <dataSourceExpression>        <![CDATA[new net.sf.jasperreports.engine.data.JRBeanCollectionDataSource($V{project})]]>    </dataSourceExpression>`</datasetRun>[/code]

$V{project} must contain javaCollection. I don't know how to write multiple line java code in variable expression in IReport 4.5 to get my javaCollection.It is possible? Or there is another way to get javaCollection

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...