Jump to content

Printing list in an object.


swetha reddy

Recommended Posts

Hi,

 

I have an object which contains list of other objects

Ex; Claim.ClaimLocations.

Claim is my object and it has list of ClaimLocations.

I want to print these list of claim locations objects using ireport. I can pass only the claim object as i have to print the fields in claim and claim locations list

How can i iterate and print these objects.

 

Please help me regarding this.

Post edited by: swetha reddy, at: 2007/07/11 04:15

Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

hi

 

i have also faced the same problem earlier.

 

i came to solve that by using sub reports.

 

cast the claim locations list to JRBeanCollectionDataSource object.

 

create a sub report and pass the bean collection object as datasource expression for the sub report from your main report.....

 

 

bay.......

Post edited by: suman_alla, at: 2007/07/11 08:18

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