Table of Contents

Use Variables & Expressions

Variables are placeholders used to hold and maintain certain values. In some cases, it is possible to not know some of the values that you might want to display or use within the Application. In this case, you can use Variables where the real value can be substituted in later. Expressions can also be configured and are useful for doing certain calculations and returning results which can also be used in the Application.

Note

It is recommended that you read the article listed below to improve your understanding of Variables and Expressions.

Adding a Variable

To add a Variable to the Application, follow the steps below:

  1. Open the editor for the Application.

    Screenshot showing how to open the application editor by clicking the edit button

  2. Open the page the Variable will be stored in.

  3. Click on Page Data.

  4. Click on the plus symbol to add a new Variable.

    Screenshot showing the Page Data tab with the plus button highlighted to add a new variable

  5. Type the name of the Variable.

  6. Enter the type and whether it is a value or expression.

  7. Click on Save.

    Screenshot showing the variable configuration panel with name, type, and value/expression options

The Variable should show in the list of Variables.

Screenshot showing a list of variables in the Page Data panel

Using a Variable

To use a Variable, follow the steps below:

  1. Highlight the Block you want to bind the Variable to. In this case, it is a textbox for the user's input.
  2. Click on Block Properties.
  3. Expand Value.
  4. Select the Variable
  5. Click on Save.

Screenshot showing how to bind a variable to a block by selecting it in the Block Properties panel

Adding Expressions

When adding a Variable, there is an option to build an expression. The example below shows an expression that multiplies the values of two variables together. To build an expression, follow the steps below:

  1. Change the mode to expression.
  2. Select the expression box.
  3. Select from a range of parameters, Variables, and other functions to build an expression. When a value is selected it will appear in the expression box.
Note

Numbers are identified as integers by default. Convert to other data types using:

  • a method e.g.ToLong(0)for the value 0 as a long
  • 2.0for the value 2 as a double

Screenshot showing the expression builder interface with functions, variables, and operators

  1. Click on Save.

Screenshot showing the completed expression with the Save button highlighted

Deleting a Variable

To delete a Variable, follow the steps below:

  1. Click on Page Data.
  2. Click on Edit to edit the Variable.
  3. Click on Delete.

Screenshot showing the edit panel for a variable with the Delete button highlighted

  1. Confirm that you want to delete the Variable.

Screenshot showing the confirmation dialog for deleting a variable


Last modified: June 04, 2025