Joget DX 8 Stable Released
The stable release for Joget DX 8 is now available, with a focus on UX and Governance.
BeanShell Display Column allows BeanShell integration in a List, which allows you to write custom Java code to create custom displays.
Figure 1: BeanShell Display Column element listed under the Display Column section as "BeanShell".
It can be found labelled as "BeanShell" under the Display Column section in the List Builder. You may also find it using the Search Palette by keying in "BeanShell".
Not to be confused with BeanShell Action.
Simply drag and drop the element into the List. Remember to Save your work by clicking on the blue glowing "Save" button on the upper right corner.
Figure 2: Adding a BeanShell Display Column to a List.
Figure 3: BeanShell Display Column properties.
Custom label for the BeanShell Display Column element.
Default value: "BeanShell".
|ID||ID of the BeanShell Display Column element.|
Custom script in Java.
Figure 4: Example input 1 in the Script property.
Figure 5: Result from example input 1 shown in Figure 4.
List of Injected Variables Used for Samples 2 and 3:
Figure 6: Example input 2 in the Script property.
Figure 7: Result from example input 2 shown in Figure 6.
Figure 8: Example input 3 in the Script property.
Figure 9: Result from example input 3 shown in Figure 8.