Administration Guide

Execute Function

To configure how to invoke a Function:

  1. In the Execute Function dialog box, click Select and either choose a Function from the list of existing Functions for the object class or create a new one by clicking New and then selecting it.

    INFO: For details, see Creating Functions.

  2. Under Parameters, specify parameter values that are passed to the Function. Default parameter values will display <Default> in red color. Mandatory parameters that haven’t been assigned yet will display <Double-click to assign value> in red color.

    IMPORTANT: You can invoke a Function only when it’s parameter values are assigned. If some parameter values are missing, Alloy Navigator does not allow you to generate such Function.

    You can assign a value to a parameter as follows:

    • Assign one of predefined values:
      • Right-click a parameter row and choose a value from the pop-up list, which contains the following items:
        • <Empty> the placeholder for the empty value.
        • When the Function is invoked from an Action: If the invoker Action Form has virtual fields, the list displays the virtual fields of the same data type as the target parameter.

          INFO: For details on Forms, see Creating Forms.

        • When the Function is invoked from another Function: If the invoker Function has its own parameters, the list contains parameters of the same data type as the target parameter.

          INFO: For details on Functions, see Creating Functions.

      • If the pop-up list does not contain the value that you need, proceed as follows:
        1. Double-click a parameter row to bring up the Assign Parameter dialog box.
        2. Next to the Value field, click the Build Expression button to bring up the Build Expression dialog box, then specify a static value or a runtime expression.

        INFO: For details, see Using the Expression Builder.

  3. Keep the Enable operation check box selected. Otherwise, this operation will be ignored.
  4. Click OK.