Data bindings

Data bindings are used to connect the data in data sources to UI components and action nodes.

UI components

Data bindings are used on UI components to both display and modify data. For data input components, like Text edit, the binding is two-way. This means it will both display updates coming from the bound property, as well as send updates back to the bound property when the user edits the text.

Data bindings can also be used to set the value of boolean properties. For example, if you have an app variable Show all projects (boolean), you could bind it to the Visible property of a component. The visibility of the component will then be controlled by the value of the app variable.

Other example data bindings include:

  • A data source property can be bound to the Text property of a Text component to display text in the UI.

  • A data source property can be bound to the Value property of a Text edit component to store user input.

  • An entire data source can be bound to the Data Source property of a Table component to generate a row for each object.

  • As in the screenshot below, an entire data source can be bound to the Data Source property of the List component. If the data source is called Projects Primary Text could be bound to Projects.Name. At runtime, this would create a list all projects with the project name.

Action nodes

Action nodes rely on data bindings to know which data to read in and manipulate. For example, a Create object action node needs to bound to the data source it should create a new object in. You will also want to assign values to the object properties and these can also be data bound, such as setting a value from a runtime data source or app variable.

Last updated