In this tutorial, we explain the concepts of data binding in OpenUI5.
This tutorial has been moved.
For a TypeScript version, see TypeScript Data Binding Tutorial on GitHub.
sap.m.Text control. The text in this control is a hard-coded part of the control’s definition; therefore, this is not an example of data binding!sap.m.Input fields. We’re also adding a check box control to enable or disable both input fields. This setup illustrates a feature known as “two-way data binding”. As the view now contains more controls, we’re also moving the view definition into an XML file.sap.m.URLHelper.normalizeEmail API. As soon as the user changes the name, the e-mail also changes. We need a custom formatter function for this.Boolean, Currency, Date and Float. You can apply these data types to controls to ensure that the value displayed on the screen is formatted correctly. If the field is open for input, this also ensures that the user input meets the requirements of that data type. Let’s add a new field called Sales Amount of type Currency.Messaging, which then connects them to the appropriate view and control that caused the error.Related Information