Jump to content
We've recently updated our Privacy Statement, available here ×

Get generic list from JRBeanCollectionDataSource


lesharb

Recommended Posts

Hello

I have simple sturucture of json

public class Document {  private String id;  private String name;  private List<Info> info;}public class Info {  private LocalDate date;  private String desc;}[/code]

 

I create a MainTemplate and pass the JRBeanCollectionDataSource (List <Document>) there

In MainTemplate I created a SubReport and print simple fields (id and name)

How do I print List <Info> in SubReport?

 

 

Now I have such errors

  • net.sf.jasperreports.engine.JRException: Error retrieving field value from bean: date
  • Unknown property 'date' on class 'class java.util.ArrayList'
Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Popular Days

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...