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

Compare with Current View Page History

« Previous Version 3 Next »

Introduction

Bean Shell Action allows you to write custom Java code to perform custom actions on the datalist.

Bean Shell Action Properties

Configure Bean Shell Datalist Action

NameDescriptionScreens (Click to view)
LabelLink / Button label.

Figure 1: Bean Shell Action Properties

Confirmation MessageConfirmation message before performing action.
Script

Script in Java.

Injected variables available for consumption are:-

  • httpRequest
  • datalist
  • rowKeys
Sample Code
for (String key : rowKeys) {
System.out.println("Record key is " + key);
}

Visibility Control

Figure 3 : Bean Shell Datalist Action Properties - Visibility Control


NameDescriptionScreens (Click to view)
Rules

Defines when the action should appear based on the condition(s) set.

FieldDescription
Join TypeCondition type to fulfill.
FieldForm field ID.
Operator

Available operator types:

  • Equal
  • Not Equal
  • Greater Than
  • Greater Than Or Equal
  • Less Than
  • Less Than Or Equal
  • Like
  • Not Like
  • In
  • Not In
  • Is True
  • Is False
  • Is Empty
  • Is Not Empty
  • Regex
  • Not Regex
ValueShow the action when form field matches the condition.

Figure 2: Visibility Control Properties




  • No labels