List<Object> as a JRBeanCollectionDataSource to a Subreport
- by Kiran
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.