iReport - Multiple javabean sets datasource

2

I need some help here. Would appreciate any help.

In simplicity:

a. I have 2 classes with all the getXxxx methods.

b. I need to display the beans of the first class on first page and the beans for the 2nd class on second page.

For Javabean set data source, iReport requires a return of collection of the class. Problem is when i make that collection of generic type (meaning example <Object> cos' i need to populate instances of the first and second class), iReport cannot interpret those fields to which class it belongs to.

It will work only for 1 class .. meaning i specifically make that return collection <first class> and that would work but then i dont have any data for the second class.

Hope this is clear and would appreciate any help.

Please refer to attachment.

Thanks.

yapkm01's picture
28
Joined: Jun 23 2009 - 2:23pm
Last seen: 11 years 4 months ago

0 Answers:

No answers yet
Feedback
randomness