fatsy Posted August 1, 2007 Share Posted August 1, 2007 Hallo All, I have a question regarding JRBeanCollectionDataSource.I have a Arraylist of objects type A and each object of type A withhelds an Array list of Objetcts type B. How can I do the reporting so that the report display the object type A with a list of its Objects type B.When I do it separately I can create a report of Objects type A and a second report of Objects type B.But what I want is having them on one report which could be done with subreport but I'm having problem with the data source. Please help me.:(Thanks in Advance RegardsFatmaPost edited by: fatsy, at: 2007/08/01 09:49 Link to comment Share on other sites More sharing options...
csplrj Posted August 1, 2007 Share Posted August 1, 2007 Add Field in Report of type JRBeanCollectionDataSource and add in that Arraylist A, JRBeanCollectionDataSource of Object B and have datasource of subreport as $F{subReportList} Thus your problem should be solved Bye for now Chirag Link to comment Share on other sites More sharing options...
fatsy Posted August 1, 2007 Author Share Posted August 1, 2007 Hi Chirag, Thanks alot for the qiuck answer.Please can you explain abit in depth what you mean.I didn't understand it clearly. Sorry incase of any inconvinience caused. Thanks in advance. Fatsy 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