Data binding allows for automatic synchronization of data between a user interface and a data model. It eliminates the need for manual data manipulation and provides a convenient way to update and display information.

There are two common approaches to achieving data binding: Expression-based binding and two-way binding with a Business Object (BO).

You can select the required data binding model from the Values option in the Properties tab of each UI element.


Expression-based Binding

You can use expressions directly in your user interface to bind data.

E.g.

Let's assume you have an employee management system where users enter employee details through a form. You want to concatenate the first name and last name to display the full name without requiring users to manually enter it.

Two-way Binding with a Business Object (BO)

You create a data model or object that holds the employee data. 

E.g.

To generate an auto-incrementing ID for each employee in a Form you can create a count attribute in an Aggregate BO. This count attribute will be used to calculate the total number of employees. By referencing this count attribute in the Form, you can display an auto-incrementing ID for each employee.