dijkstra Posted May 25, 2007 Share Posted May 25, 2007 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now