Navigating to a Variable or a Function
Last updated
Last updated
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.
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().
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.
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.
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)
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.
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.