BeanShell Action

BeanShell Action allows you to write custom Java code to perform specific actions on the List, enhancing the functionality and interactivity of your application.

Configure BeanShell

Select BeanShell from the Action menu in the lateral menu to add the element BeanShell. 

When adding BeanShell, you will see the following properties from the element available for configuration:

Visibility control

These 2 sections (Visibility Control and Others) are only visible when BeanShell Action is used in the List Column.

Fields to Configure:

  • Rules: Defines when the action should appear based on the condition(s) set.
    Only applicable to row action placeholder.
    • Join Type: Condition type to fulfill.
    • Field: Form 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
    • Value: Show the action when form field matches the condition.

Others

Fields additionals to Configure:

  • Header Label: Header label of the List Action.
  • Display Type: Display type of the List Action.
    • Link Button
    • Primary Button
    • Secondary Button
    • Success Button
    • Danger Button
    • Warning Button
    • Info Button
    • Light Button
    • Dark Button

BeanShell Action provides a flexible way to add custom functionality to your lists, making it a powerful tool for tailoring Joget applications to specific requirements.

Created by Julieth Last modified by Aadrian on Dec 13, 2024