Adding variables and constants from parameters
An existing variable or constant can also be assigned to a parameter through the parameter's context menu. You can also create a new variable or constant through the parameter's context menu.
- Double-click a mapping to open it in the Mapper Editor.
-
Right-click a parameter for a function in the Mapping, select any of these options:
Option Description Assign a variable Select this option to assign a variable to the parameter. The variable has to have the same name and type as the parameter.
If such a variable does not already exist, it is automatically created and assigned to the parameter. The variable will have the same name, data type, and description as the parameter.
If such a variable already exists, 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 will have the same name as the parameter name with a unique index added, and the same data type and description as the parameter. Click Cancel to abort the operation.
Assign a constant Select this option to assign a constant to the parameter. This option is only available for input parameters, as a constant must have a fixed value. The constant has to have the same name and type as the parameter.
If such a constant does not already exist, it is automatically created and assigned to the parameter. The constant will have the same name, data type and description as the parameter. Before the constant is created, the constant's value has to be set. A dialog is displayed where you set the new constant's value. 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. Click Cancel to abort the operation.
If such a constant already exists, 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 will have 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. Click Cancel to abort the operation.
- Save the mapping.