Create state

Overview

State State is the condition or status for a component such as a list, a view, a switch and so on, at a given time. States can be stored in the app for later use, for instance to restore a view when a user returns to it.

Create State

Key

The state must have a unique identifier, which is used internally by the app.

Type

Select the appropriate data type to be stored.

Text

An alphanumerical string.

Timestamp

Date and time.

Number

A numerical value.

URL

An address to a web source.

Image

An image file.

File

A file.

Boolean

A true or false statement.

Location

Geographic location on a map.

JSON

Data in JSON format.

List

The contents of a list.

Label

Give the state a name. The label is visible, for instance, when configuring patches.

Default Value

Some data types have the option to enter a default value, file or image.

Check the box Empty Value if no default value is needed.

  • Click Create when finished.