Add a Call Function Action

You add a Call Function action to call a function defined for the current page, flow, or application. Functions for a page, flow and application are created using their JavaScript editor.

To use a Call Function action:

  1. Add the action in one of three ways, depending on your preference and where you want it added:
    • Drag the action from the Actions palette onto the canvas, dropping the action either at the bottom edge of the action it is to follow, or at the top edge of the action it is to precede.
    • Double-click the action in the Actions palette to add it to an empty canvas or to the end of an action chain.
    • On the canvas, select the action you want the new action to follow, then double-click the new action in the Actions palette.
  2. In the Properties pane, select an existing function from the Function Name drop-down list, or click Create to create a new function. You can select or create a function that is defined for the current page, flow, or application.
  3. If you want to view or modify the function's code, click Go to Module Function to go to the JavaScript editor to do so.
  4. If the function requires input parameters, they'll be listed under the Input Parameters section of the Properties pane. For each input parameter, hover over the far-right side of the parameter and click the down arrow that appears to choose its source. If you need to create a variable, use the appropriate Create Variable link in the Variables dialogue to create it at the appropriate scope level.

    Here's an example of a Call Function action, with its input parameter, arg1, needing specification:
    Description of jsac-call-function-action-example.jpg follows
    Description of the illustration jsac-call-function-action-example.jpg

If a value is returned by the action, it is assigned to the auto-generated variable shown by the Store Result In property.

For API information about this action, see Call Function in the Oracle Visual Builder Page Model Reference.