Versions Compared

Key

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

...

    • A String value to replace the original row value

Samples:

1) Example code using DataListService service method to evaluate column value "Name" from row object.

Code Block
languagejava
//import the necessary classes
import org.joget.apps.datalist.service.DataListService;
import org.joget.apps.app.service.AppUtil;
 
DataListService dataListService = (DataListService) AppUtil.getApplicationContext().getBean("dataListService");
  
//since this entire bean shell applies to every row, "row" is automatically iterated here.
//"name" is the column id
return dataListService.evaluateColumnValueFromRow(row, "name") +;

2) Format the row value by appending hash variable.

Code Block
languagejava
return value + " #currentUser.firstName#";

...