Actions

Actions are invoked from rules in response to form events or programmatically from within a script. An action can be private to a single rule, or shared amongst multiple rules.

TIBCO Business Studio Forms uses three types of actions:

  • System actions
    These actions, also called built-in actions, are pre-defined and are used for common tasks such as Submit, Close, Cancel, Reset, Validate, and Apply.
  • Script actions
    Use JavaScript to create additional custom actions. Script actions run a specified script, with no other action attached to it.
  • Computation actions 
    These actions will update a specified value or property with the result of an expression written in Javascript. The destination of a computation action can be the value of a parameter or control, or a secondary property such as label or hint of a control, or a visible flag for a pane, and so on. After the script in the computation action is run, it produces a value that can be used by another action.

Actions can be flagged as “shared” allowing them to be used in multiple rules.

Note: System actions can be used also by the users working in Business Analysis mode, while the scripted actions and computation action can be developed only by the users working in Solution Design mode. Once actions have been defined within a form by a developer, business analysts can re-use them for similar purposes in their projects.

To add an action, right click the Shared Actions system group in the Outline view.

To add and configure actions, see Setting Actions.

To associate actions with rules, see Setting Rules.