PLs: JRBeanCollectionDataSource Question

0
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

Regards
Fatma
Post edited by: fatsy, at: 2007/08/01 09:49
fatsy's picture
38
Joined: Mar 16 2007 - 1:38am
Last seen: 12 years 7 months ago

2 Answers:

0
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
csplrj's picture
18
Joined: Mar 29 2007 - 7:50pm
Last seen: 2 years 10 months ago
0
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
fatsy's picture
38
Joined: Mar 16 2007 - 1:38am
Last seen: 12 years 7 months ago
Feedback
randomness