You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 5 Next »

Definition
Bean Shell Formatter allows you to write custom Java code to transform values on the datalist column.

Figure 1: Bean Shell Formatter Properties


NameDescription
Script

Script in Java.

Injected variables available for consumption are:-

  • datalist
  • column
  • row
  • value

Returns a String.

Sample Code
value = value + "append this text to every column value";
 
return value;

 

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

Sample Code
value = value + " #currentUser.firstName#";
 
return value;

 

 

 

  • No labels