Jump to content
JasperReports Library 7.0 is now available ×

Passing beans to subreport


dijkstra

Recommended Posts

Hi,

 

I'm trying to figure out how to pass a collection of beans to a subreport. The scenario I'm trying to implement is as follows. Rather then using the query support within the report, I have a preference of passing beans to the report to be generated. For ease of understanding I plan to pass a collection of Persons (POJOs) as a JRxxxDatasource. Each Person has a collection of Addresses (Address POJOs). Now in the master report I'd like to print the details of each Person, and in the subreport I would like to print the Address belonging to that particular Person.

 

 

So from the current Person in my master, I would like to pass the corresponding Addresses to the subreport.

 

 

Problem is that I have no clue how to do this. I would very much appreciate receiving some pointers, examples that help me in doing so.

 

 

Thanks,

 

Vincent

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