peter.marlow1787 Posted December 7, 2015 Posted December 7, 2015 Is it possible to define a variable as a list of custom java classes?For example say I have a java class that returns List(mycustomclass). How can a reference this correctly in iReportDesigner? At present I can create a variable called for example SummaryTablePopulator, with a variable expression that returns an ArrayList(mycustomclass). This variable has java.util.List defined as its Variable Class, iReports is fine with this. However I don't seem to be able to iterate over this list and access methods on each mycustomclass object. For example in the Column Header section of the report I was hoping to populate a table by doing the following: $V{SummaryTablePopulator}.getSectionNumber() Where getSectionNumber is a method on the mycustomclass object. The error I get is: The method getSectionNumber() is undefined for the type List I'm using iReport Designer 4.0.1.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now