Variables
Variables are reserved values that unlike status keys, are saved after the workflow and can be used in different workflows. Variables can be global and shared in your whole application between different pages, or just in a single page between different workflows. Variables can be used in a lot of processes, one way to use them is for filtering.
Local Variables
In this example we will assume there is a page with 2 text blocks.
Creation
Go to the page you want to use the variable in, and open the app builder
Note: When you open the AppBuilder, please select edit mode and not view mode. When you select the edit mode the page becomes locked and you are the only one allowed to change it until the changes are accepted in the ChangeLog.
Click on the base and go to the variables property
Note that a local variable can be created in any layout you need.
Click the + sign to create a new one
Give it a name and a type. You can also give it an initial value using the Formula textbox if you need to initialize it.
Using Local Variables
Workflows are used to read or change local variables.
- In the variables category, choose the read variable
- Now choose the element which has the variable. For this example it was the base
- Set it to the text block
- Delay for 3 seconds
- In the variables category, choose the set variable
- Now choose the element which has the variable. For this example it was the base
- Choose which variable you want to change
- Give it the value you want
- Save the WF
- And add it to the text block as on init event
Global Variables
Creation
- Navigate to the settings
- Go to the data tab
- Go to the global variables tab
- Click the + button to create a new global variable
- Set a name and a data type
- If you want to initialize it, give it a value in the formula
Using Global Variables
Workflows are used to read or change global variables.
- Choose which variable you want to read
- Store it in a static key
- Add a show message
- Use the stored value as message
- You can save it using the set variable WFB
Note: All changes made are saved locally on your account, and are not visible to the all other users. To make them visible to all users please accept the changes in the ChangeLog Overview in the settings.