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
Extensibility of SAP FPM (Floorplan Manager) Application
SAP Floorplan Manager (FPM) is a powerful framework that simplifies the configuration and enhancement of user interfaces in SAP. FPM enables the...
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...
Why Should You Use SAP Integration Suite?
Integration, which is the foundation of a successful company, is a top strategic priority for companies. The reason for this is that the integration...
Natural Language Database Interaction via LLMs: Text-to-Query Agent
1. What is the text to query? Text-to-Query is a technology that lets users interact with databases in plain language. Instead of writing SQL or...
JIT Calls & Tour Processing in SAP EWM
In SAP Extended Warehouse Management (EWM), Just-in-time (JIT) calls and tour processing can be integrated to manage the flow of goods within a...
Guideline for Trading Partner Management (TPM)
What is SAP B2B Integration Cockpit (B2BIC)?SAP B2B Integration Cockpit is a platform that enables you to monitor and access the B2B add-on platform...
Creating Tables in SAP: Transactional, Customizing and Master Data
Creating tables in SAP is a fundamental step for businesses to store and manage their data in an organized way. In this process, data is usually...
SAP in the Cloud Environment: Advantages, Applications, and Future
The traditional approach of running SAP systems on-premises servers is gradually being eclipsed by the growing trend of migrating SAP applications to...
The Evolution of Fiori
What is SAP Fiori? SAP Fiori is a new user interface for standard SAP applications. It encompasses hundreds of standard applications...
Your mail has been sent successfully. You will be contacted as soon as possible.
Your message could not be delivered! Please try again later.