Jump to content

Recommended Posts

Posted

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.

  • 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...