Jump to content
Changes to the Jaspersoft community edition download ×

Can I sum list elements into a variable of type list?


werther_1

Recommended Posts

I'm using iReport generating output in Excel. I have a field defined with type list which comes with, say, 10 values, each to appear in columns 0 - 9.

I can access each value of this list using $F{fieldname}.get(0) , (1), (2) ... (9).

I would like to know if it's possible to sum these 10 columns into one variable of type list, instead of defining 10 different variables, one for each colum.

I've tried a lot of different combinations of definitions, with no success.

Thanks.

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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