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
What is Task Interleaving?
Task interleaving is an advanced strategy to optimize internal warehouse movements. It can be used both in goods receipt and goods removal. It is...
What is SAP User Experience (UX)?
The rapid pace of digitalization causes companies to need rapidly increasing efficiency, high customer loyalty, and increasing competitiveness and...
Understanding IDoc in SAP: Overview, Structure, and Types
SAP’s robust enterprise resource planning (ERP) solutions streamline business operations across various industries. At the heart of SAP’s data...
What is Continuous Improvement?
Continuous improvement refers to the improvements made every day that make our life easier and our business processes efficient. It is an approach...
What is SAP MII Energy Monitoring and Analysis?
One of the biggest costs of a product is the cost of energy spent in the production phase. Businesses look for ways to manage their costs in the most...
ABAP Clean Code: The Key to Better Software Development
Clean code refers to software that is readable, understandable, maintainable, and testable. Embracing clean code principles in ABAP ensures that...
Using SAP EWM with RFUI for Efficient Warehouse Management
Overview of SAP EWM with RFUISAP EWM with RFUI is an advanced solution designed to manage complex and large-scale warehouse operations across various...
What is SAP S/4HANA?
SAP S/4HANA is an ERP business suite based on the SAP HANA in-memory database that allows companies to process transactions and analyze business data...
SAP AI Services; Document Information Extraction
Nowadays companies, encounter in their daily operations with numerous digital and written document. Getting accurate data quickly from documents such...
Your mail has been sent successfully. You will be contacted as soon as possible.
Your message could not be delivered! Please try again later.