Copyright © TIBCO Software Inc. All Rights Reserved
Copyright © TIBCO Software Inc. All Rights Reserved


Chapter 2 Concepts : Actions

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.
To add an action, right click the Shared Actions system group in the Outline View.
Figure 48 Add an Action in the Outline View
 
To add and configure actions, see Setting Actions.
To associate actions with rules, see Setting Rules.
Actions Summary Table
The Actions summary table provides a useful overview of the shared actions. To see each shared action in the current project, select the Shared Actions node in the Outline View.
Figure 49 Actions Summary Table
 
This table displays the following columns:
Name   Name of the action. To edit the name, click on the ellipsis (...) button, which appears when the name is selected. Edit the name using the Enter the Name page.
Label   Label of the action.
Edit   Displays the text Edit as a hyperlink. When clicked, it will navigate to the configuration property screen for that Action.
Type   non-editable field that shows either ScriptAction or ComputationAction.
Detail   non-editable detail of the Action specific to the action type.
ComputationActions display [property] updated by expression: [script].

Copyright © TIBCO Software Inc. All Rights Reserved
Copyright © TIBCO Software Inc. All Rights Reserved