Groovy datagrid builder addcolumn
I am trying to use DataGridBuilder to post values to the database.
when I statically pass values to addcolumn it works okay.
builder.addColumn('12356','37460') -- this works fine
but if I try to pass them from a list it does not work
def temp = ['12356','37460']
builder.addColumn(temp.join(', ')) -- this does not work, '12356','37460' is seen as string instead of comma seperated values.
Could anyone help me to pass the values from the list as parameters to the 'addcolumn' method?