My JavaBean contains the java.util.List.
Userinfo {
private String username;
private String password;
List<Address> listAddress;
}
How to show the data of this List in the Detail band?
My JavaBean contains the java.util.List.
Userinfo {
private String username;
private String password;
List<Address> listAddress;
}
How to show the data of this List in the Detail band?
Here is the working sample.
The key points of this sample:
_THIS
expression;The snippet of code for generating report:
The JavaBean code:
The jrxml file:
The result will be:
Other related questions are the How do I print a list of strings contained within another list in iReport? question and Passing the List of primitive type objects as datasource for subreport question.