We'd love to hear from you! Provide  feedback  to earn a badge today. Take our quick survey
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

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



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?


Howdy, Stranger!

Log In

To view full details, sign in.


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