Create form variables
Create, modify and delete form variables.
See Form variables.
-
On the form modeling bar, click
Form variables and click
New.
The New form variable dialog box is displayed.
-
Enter a unique
Name for the variable, such as CustomerName.
Note If a form variable has the same name as a form control, the control name takes precedence.
-
On the
Type list, select the type of variable, such as
Decimal. (Default: String)
See the form variable types supported by TotalAgility.
-
Select, enter or define a
Value for the variable. For example, for the Array, define the number of
columns.
To provide a dynamic value at runtime, leave the Value empty.
-
Click
Save.
The form variable appears on the list.
- Save the form.
Create a Date variable
- In the New form variable dialog box, enter a unique Name for the variable.
- On the Type list, select Date. (Default: String)
-
For
Value, do either of the following:
-
Click the Calendar picker and select the required date and time.
-
Click fx.
By default, @Today macro appears in the Value box. Use @Today macro to get the current date, or a past/future date by adding or subtracting the number of days. For example, specify the value as @Today+5. At runtime, the value of the Date variable is set to the current date + (plus) or - (minus) the number of days specified (if any).
-
-
Click
Save.
The date variable appears on the Form variables page.
Maintain a form variable
You can only change the value of a variable, but cannot change its name and type.
-
On the form modeling bar, click
Form variables.
A list of existing form variables appear.
-
To modify a form variable:
-
On the list of variables, click the variable to modify.
The Edit form variable dialog box appears.
- Make changes as needed.
- Click Update.
-
On the list of variables, click the variable to modify.
-
To delete a form variable, on the context menu of the variable to delete, click
Delete.
On confirmation, the variable is deleted.