Jump to content
Changes to the Jaspersoft community edition download ×

DataSource with nested bean collection


Recommended Posts

Hi All,

I have a datasource such that

Collection of Employee

Employee has Collection of Records

Record has attribute like Start Date, End Date etc

I am passing this datasource to my jrml and want to access Start Date and End Date.


I looked through the forum there are couple of unanswred thread, if any one have a solution please reply back.




Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

This scenario usually requires a subreport to display nested collection entries.


You would need to do something like


<field name="records" class="java.util.Collection"/>
new JRBeanCollectionDataSource($F{records})
<subreportExpression>...employee recoreds subreport...</subreportExpression>




Link to comment
Share on other sites

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...