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
Physical Inventory Process Using RF Device
In the SAP Extended Warehouse Management (EWM) System, it is possible to count available stock and keep the records on the system by using the...
Benefits of Using SAP Fiori Applications for Businesses
SAP Fiori includes multiple intuitive applications and guides that optimize the user experience, enabling users to reduce errors and increase...
What is SAP Build Work Zone?
In today's business world, businesses are trying to reach multiple application systems and fragmented information while managing their business...
SAP Fiori in the Cloud Era: Push Notification and Notification Center
In today’s environment, where companies are seeking solutions to optimize business processes and enhance user experience, SAP Fiori’s...
What is Supplier Relationship Management (SRM)?
The relations of the companies with their suppliers are as critical as the customer relations, as they affect the smooth and fast operation of all...
What Are Side Effects in SAP RAP?
In SAP RAP (Restful Application Programming) side effects refer to the impact that changes in one part of the data model or UI can have on other...
Expected Goods Receipt Process in SAP EWM
Introduction Expected Goods Receipt (EGR) is one of the vital functionalities in SAP Extended Warehouse Management (EWM), ensuring the smooth...
Quantity Correction in Diff Analyzer
SAP Extended Warehouse Management (EWM) plays a critical role in managing logistics operations and accurate inventory management is a basic...
How To Become an SAP PI/PO Consultant?
SAP consultancy careers are among the most popular career options for students and fresh graduates todays. SAP consultants are professionals working...
Your mail has been sent successfully. You will be contacted as soon as possible.
Your message could not be delivered! Please try again later.