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 Emrah Tezcan, who serves as an SAP ABAP & Fiori Consultant at MDP Group, is a highly skilled SAP expert developing enterprise solutions based on ABAP Cloud and the RAP (RESTful ABAP Programming Model) on the S/4HANA architecture. With deep expertise in extensibility approaches aligned with the Clean Core strategy, HANA Output Management, Adobe Forms, and Flexible Workflow processes, Tezcan takes end-to-end responsibility across the entire software development lifecycle (SDLC), from analysis and design to testing/UAT, go-live, and post-production support.
Discover the Power of SAP Joule, the AI-Powered Assistant
Digital transformation is affecting the business world more and more every day with the speed of technology. Businesses are increasingly using...
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...
7 Warehouse Optimization Tips for Businesses
In a business world where speed is of the essence, warehouse management is one of the keys to improving business competitiveness and profitability....
How SAP EWM Can Optimize Warehouse Operations?
Overview of SAP EWM and SAP WMSAP EWM (Extended Warehouse Management) is a new-generation warehouse management system developed to optimize warehouse...
What is the Production Material Request (PMR) in SAP EWM?
Production Material Request in SAP EWMSAP Extended Warehouse Management (SAP EWM) has strict connections with other modules and one of these modules...
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 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 Extended Warehouse Management (EWM)? Guide
Today, organizations focus on delivering their services and products to their customers in a fast and high-quality manner to ensure customer...
What is Edge Integration Cell in SAP Integration Suite?
What is Edge Integration Cell? Organizations often hesitate to move all their processes to the cloud due to concerns such as data security,...
Your mail has been sent successfully. You will be contacted as soon as possible.
Your message could not be delivered! Please try again later.