Normal Variable to Global Variable:
We create normal variables directly in an activity (from the context menu
of an activity), has a smallest scope it belongs to. To make them available in
your entire project, do the following:
- Click the smallest container in an automation.
- On the Design ribbon tab, in the Variables
group, select Manage Variables > Promote to Global Scope. All
the variables used in the selected container now have a global scope
Best Naming Practice for Variables:
When creating very large automations, it can
be very easy to forget what every variable does. That is why it is important to
have a good naming system in place.We recommend that you always use descriptive names, such as userName for a variable that stores the name of a user.
Additionally, you might want to keep track of the type of variable you create, and that is why adding a short descriptor in the front of each variable name can be useful, such as int for integers.
Finally, UI Studio recommends that you write variable names in Camel Case, so that you can read them easier.
Example of how to name your variables
Variable Type
|
Variable Name
|
Generic
Value
|
genVariableName
|
Text
|
strVariableName
|
Number
|
intVariableName
|
True
or False
|
boolVariableName
|
Date
and Time
|
timVariableName
|
Data
Table
|
datVariableName
|
Comments
Post a Comment
We appreciate your valuable Suggestions/Feedback