Inserting Variables

Variables are dynamic placeholders that are replaced by the actual values when a task runs.

The fields in which you can insert dynamic placeholders display a , for example:

Clicking the icon opens the Insert Variable dialog. Once you have defined the variables you need, they are listed here and you can easily insert them in the required fields

To Insert Variables in a Field

  1. Open the Insert Variables dialog shown below by clicking in an allowable field.
  2. Click to Expand

  3. Select a category from the drop-down list. The following options are available:
  4. Optionally specify a search in the Search field to limit the display results.
  5. The search is case-insensitive.

  6. Select a variable from the list.
  7. If the categories "System Properties" or "Object" are selected, the entries represent a short form of the relevant value.

    If the categories "Automation variables" or "Variable objects" are selected, the list displays the names of the Variable objects.

    When available, the variable's description is displayed below the "Variable name" field.

  8. If the variable you select has date or time format, select a format from the Format field.
  9. Some date and time formats include special characters which must not be used for variable names. The '_' character is always used as a separator in the variable name (instead of usual separators). At the end, another '_' plus an additional letter which identifies the original separator are appended to this format.

    Examples of separators are shown below.

    Dialog entry Date format Placeholder Value
    &$DATE_format# DD/MM/YYYY &$DATE_DD_MM_YYYY_s# 23/04/2017
    &$DATE_format# DD.MM.YYYY &$DATE_DD_MM_YYYY_p# 23.04.2017
    &$DATE_format# DD-MM-YYYY &$DATE_DD_MM_YYYY_d# 23-04-2017

    A list of all supported formats is included in Date and Time Formats for Automation Engine and Object Properties Variables.

  10. If the variable you select is a Static Variable object, optionally enter the key name and column number for the cell you want to select.
  11. Click Select.
  12. The variable is added to the field. If you specified a format or key and column, the variable name will be displayed accordingly. For example:

    The variable: With: Is written as:
    Current time The time format HH:MM:SS &$TIME_HH_MM_SS#
    Current date Thedate format DD_MM_YYYY &$PHYS_DATE_DD_MM_YYYY_d#
    VARA.RENTALS Key 1 and column 2 {VARA.RENTALS, 1, 2}