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

Compare with Current View Page History

« Previous Version 5 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 Menu


Figure 2: 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);
}

See Utility and Service Methods.

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 3: Visibility Control Properties




  • No labels