Navigating to a Variable or a Function

  • Users can make a selection in two ways:

    • Select: Select the variable or function.

    • Drill: Go further and select an instance of the variable or function. An instance provides a value to the variable or function.

  • To select a variable or function, click the drop-down arrow of the field and click in the shaded area of the selected variable.

  • In this example, first a variable "strDate" is selected.

  • To drill down into a function, click on the text of the variable or function. The instances of the variable or function are displayed. Each instance provides a value type to the variable or function.

  • To select the instance, click outside of the text within the shaded area.

  • To go back and not select an instance, click on the left arrow in the field displaying the variable.

  • To see the illustration of navigating to a function or its instance, see Static functions.

  • There are two types of Source values entered in the Actions (to assign values to the Target variable for example):

    • Constant values: These are typed directly and on pressing Enter, these values display in a blue bubble.

    • Variable values: These are values assigned by navigating to functions or variables. When a variable's value is selected, it is called an Expression. It is displayed in a white bubble. The bubble is termed an Expression bubble.

Examples

Assigning function to a variable

To add the Now() function as Source value to update the variable β€œstrDate” of data type DateTime, navigate by selecting: Functions>DateTime>CurrentDate(string).

  • Select variable StrDate.

  • Drill down into Functions.

  • Drill down into DateTime.

  • Select CurrentDate(string) function.

  • The Expression bubble shows the expression Functions>DateTime>Now().

Assigning variable to a variable

To assign the value in the variable β€œstrNewDate” of data type string to another variable β€œstrDate” of data type string, add the variable β€œstrNewDate” as the Source value by navigating as Variables>strNewDate.

  • Select the target variable "strDate".

  • In the source, click on Variables

  • Select the variable "strNewDate".

  • The Expression bubble shows the expression strNewDate.

Assigning constant values to variables

  • To add constant values, type in the value and press Enter. For example, to add the string β€œWelcome!” as a value to be updated to the Target variable β€œstr”, type the text β€œWelcome!” and press Enter.

Assigning constant values and expressions

Constant Values and Expressions

To add the Source as the text β€œHello!” with a reference variable that contains a name, in the source:

  • First type Hello and press Enter.

  • Second, select Variables>name. (as shown in the image sequences below)

Multiple variable values

To add the Source as β€œCustID” through the variable β€œCustomerDetail” with a reference variable that contains a name, in the source:

  • First, select Variables>CustID.

  • Next, add the variable referencing the name.

Reposition variables

The variables can be repositioned. To change the order from "result" "name" to "name" "result", select the variable "name" and drag it. It displays β€œMove Here” to show the place for repositioning.

Last updated