Adding a Computation Action Using the Outline View

You can add a computation action from the Outline view.

Procedure

  1. In the context-menu of Shared Actions, select New Computation Action.
  2. In the Enter the Action Details dialog, type or select data as explained in the table Specify Details to Define a New Computation Action.
    Specify Details to Define a New Computation Action
    Field Description
    Name Type the name for the new action.

    The name is only visible when the Solutions Design mode is active. The name must be unique among all actions in form and must be comprised only of alphanumeric characters and the underscore “_”. The name may be referenced from the JavaScript of other actions when using the invokeAction method.

    Label Type a descriptive label for the new action.

    The Label is used in other parts of the Form Designer to identify the action. It is not used at runtime.

    Destination Click the Browse (...) button to select a property to update with the results of the script evaluation.

    Once you select the value, it will appear in the Destination window, such as Value of Claim Amount (ClaimAmount).

    Expression    Type the script that will be evaluated in order to update the property selected in the Destination field.

    This is a JavaScript expression. The expression may contain multiple lines, but the last line in the script must be an expression that will be used to update the destination.

    Note:
    Do not use a return, since you are not writing a function.
  3. Click Finish.

    The new script action button is displayed in the Outline view indicating a shared action.