Create form variables

Create, modify and delete form variables.

  1. On the form modeling bar, click Form variables and click New.

    The New form variable dialog box is displayed.

  2. 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.
  3. On the Type list, select the type of variable, such as Decimal. (Default: String)

    See the form variable types supported by TotalAgility.

  4. 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.

  5. Click Save.

    The form variable appears on the list.

  6. Save the form.

Create a Date variable

  1. In the New form variable dialog box, enter a unique Name for the variable.
  2. On the Type list, select Date. (Default: String)
  3. 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).

  4. 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.

  1. On the form modeling bar, click Form variables.

    A list of existing form variables appear.

  2. To modify a form variable:
    1. On the list of variables, click the variable to modify.
      The Edit form variable dialog box appears.
    2. Make changes as needed.
    3. Click Update.
  3. To delete a form variable, on the context menu of the variable to delete, click Delete.

    On confirmation, the variable is deleted.