List<Object> as a JRBeanCollectionDataSource to a Subreport
Posted
by Kiran
on Stack Overflow
See other posts from Stack Overflow
or by Kiran
Published on 2010-04-29T07:34:42Z
Indexed on
2010/04/29
7:37 UTC
Read the original article
Hit count: 231
list
am passing a List as a JRBeanCollectionDataSource to a Subreport. here Object is of Type A and B. A is having properties 'name' and 'address' and B is having property 'location'. if Object is of type A then i have display 'name' and 'address' in subreport. and if is of type B then i have to diaplay 'location' in subreport.
i have to access a type of Object in a subreport, means is of which type (A or B)?. i have tried a lot but not found any solution. can anyone help me please.
thanks in advance.
© Stack Overflow or respective owner