Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

NameDescription
Script

Script in Java.

The entire script is defaulted to be applied to every row in such column, hence user does not need to perform looping to apply transformation to every row.

To customize this behaviour, user need to handle datalist, column, row variables appropriately.

Injected variables available for consumption are:-

  • datalist - org.joget.apps.datalist.model.DataList
  • column - org.joget.apps.datalist.model.DataListColumn
  • row - org.joget.apps.model.FormRow
  • value - String

Returns a String.

Code Block
titleSample Code
linenumberstrue
return value + "append this text to every column value";

 

It is also possible to inject hash variables into the values.

Code Block
titleSample Code
linenumberstrue
return value + " #currentUser.firstName#";

...