Adding variables and constants from parameters

You can assign an existing variable or a constant to a parameter through the parameter's context menu. You can also create a new variable or constant through the parameter's context menu.

  1. Double-click a mapping to open it in the Mapper Editor.
  2. Right-click a parameter for a function in the Mapping. Select one of these options:
    Option Description
    Assign Variable

    Select this option to assign a variable to the parameter. The variable must have the same name and type as the parameter.

    If that variable does not exist, then it is automatically created and assigned to the parameter. The variable has the same name, data type, and description as the parameter.

    If that variable already exists, then a confirmation dialog is displayed. Click Reuse existing variable to assign the existing variable to the parameter. Click Create a new variable to create a new variable to be assigned to the parameter. The new variable has the same name as the parameter name with a unique index added, and the same data type and description as the parameter.

    Assign Constant

    Select this option to assign a constant to the parameter. This option is only available for input parameters, because a constant must have a fixed value and have the same name and type as the parameter.

    If the constant is non-existing, then it is automatically created and assigned to the parameter. The constant has the same name, data type, and description as the parameter. The constant's value is set before it is created. A dialog is displayed where you set the new constant's value and a default value is given. The default value depends on the data type, for example, an empty string for the data type String. You can only set values that are valid for the parameter's data type. Click OK to create the constant.

    If the constant exists, then a confirmation dialog is displayed. Click Reuse existing constant to assign the existing constant to the parameter. Click Create a new constant to create a new constant to be assigned to the parameter. The new constant has the same name as the parameter name with a unique index added and the same data type and description as the parameter. The view shows a dialog where you set the new constant's value, as described above.

  3. Save the mapping.