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.

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

To use a Call Function action:

  1. Add the action in one of three ways, as explained at the end of Built-In Actions.
  2. In the Properties pane, select an existing function from the Function Name 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 Parameters section of the Properties pane. For each input parameter, hover over the far-right side of the parameter and click Select Variable to choose the variable that holds the value, or click fx to create an expression for the value. If you need to create a variable, use the appropriate Create 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.