Jump to content
Changes to the Jaspersoft community edition download ×

Populate Table with ArrayList


Recommended Posts

Hi there,


How can i populate rows of a table with values from a ArrayList? Meaning, my source is an ArrayList and if i put the field directly on the cell table, populates it as an array (column 1, cell 1:[a,b,c,...]), but i want to split the values and populate the rows with the split values: 

(column 1, cell 1:[a])

(column 1, cell 2:)

(column 1, cell 3:[c])


I already created a variable with:

 - Value Class Name: java.lang.Srting[]

- Expression: $F{array field}.split(',')

 Then at cell table i put $V{variable name}[0]


When i try ti generate the preview gives this error:

Error evaluating expression for source text: $F{array field}.split(', ')


I need some help here. :


Thanks in advance

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