You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Groovy datagrid builder addcolumn

edited Aug 30, 2021 11:33AM in Planning 7 comments

Content

Hi,

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?

Tagged:

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!