Data binding is the process that establishes a connection between the user interface and the business logic. It acts as a bridge between the binding target and the binding source.
Table of Contents
There are basically three different binding methods in SAPUI5:
The table below shows which models support the binding types mentioned above.
For example, consider the following data.
Now, in the UI code, we have a layout that will display the above data. During data binding, we don't need to specify the full path for child controls as shown below.
Thus, element binding allows relative binding of all children according to a parent.
This is simply binding between the control and the model. It allows for automatic initialization and updating of data.
We use the value property to bind data to the input field, and we can access it by providing the path of the model to be bound.
If we want to display our data in a table or list format, we can use aggregation binding.
In this example, we use the <items> property of the List control to bind data, but the StandardListItem control works as a template.
If we need some calculation or some kind of comparison on our model data, it is useful to use expression binding. For example, we can update the numberState property as follows:
Models and data binding are used in SAPUI5 applications to bind two data or information sources and synchronize data. SAPUI5 applications support different types of models. Since the JSON model provides much better performance compared to XML models, its usage is more preferred.
SAP Consulting Services
SAP Fiori Consultant
SAP PO 7.5 Migration
“To migrate or not to migrate, that is the question.” Migration to SAP PO 7.5 should be a key activity on every IT infrastructure roadmap. One of...
Understanding SAP PI/PO Message Mappings
Integration is critical for businesses because it allows them to manage complex operations and processes across multiple systems, applications and...
How to Integrate SAP with MongoDB?
In this article, we will explain how to integrate SAP and MongoDB. But let's start by introducing SAP and MongoDB first.What is MongoDB?The database...
SAP EWM Rearrangement: Optimizing the PSA
In the age of digital transformation, the integration between production and logistics is more critical than ever. SAP Extended Warehouse Management...
Migration from SAP PO to SAP Integration Suite
What is SAP Integration Suite?SAP Integration Suite (formerly SAP Cloud Platform Integration) is an integration platform that enables companies to...
What is SAP Signavio Process Manager?
Signavio Process Manager is an SAP Signavio module that offers intuitive, cloud-based, professional process modeling. SAP Signavio Process Manager...
What is SAP Logistics Management?
What is SAP Logistics Management? Unify warehouse, transportation, and partner collaboration on a single cloud solution. SAP’s new Logistics...
What is SAP Signavio Process Insight?
SAP Signavio Process Insight is one of the core solutions of the SAP Signavio Process Transformation Suite, designed to help companies improve their...
The Role of Warehousing in Supply Chain Management
The aim of supply chain management is to continue the flow of goods and services from the point of origin to the point of consumption in an...
Your mail has been sent successfully. You will be contacted as soon as possible.
Your message could not be delivered! Please try again later.