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.
Why Do Firms Use Electronic Data Interchange?
In the competitive business world that closely following technological developments have gained greater importance every day, the use of EDI has...
What is an Integration Platform?
In this article, we will discuss the definition, importance and components of the integration platform.Definition of Integration PlatformThere are...
EWM – MES Direct Integration for Receiving HUs in EWM
SAP MES (Manufacturing Execution System) is a software solution that helps manufacturers plan, execute and monitor their production activities in...
Smart Data Sharing with SAP Integration Suite
In today’s digital world, data is at the heart of everything. But simply owning data is no longer enough. Sharing the right data, with the right...
What is SAP HANA Smart Data Integration?
In the modern business world, data is considered one of the most precious resources. However, integrating and analysing this data correctly can often...
How to Implement EDI with SAP Integration Suite?
Thanks to the SAP Integration Suite, companies can make processes efficient by eliminating the difficulty and time-consuming management processes of...
If Human Knowledge Is the Limit, What Lies Beyond for AI?
In November 1971, ARPA set an ambitious goal: a speech understanding system with a vocabulary of 1,000 words and 90% accuracy. By 1976, a system...
What is Application Portfolio Management (APM)?
As your business grows, so does the scope of your IT needs. Some decisions to meet these needs are made without evaluating the Enterprise...
Azure Adapter for SAP PO
“Reduce the complexity of connecting to Azure.” Adoption of cloud-based IT solutions such as Microsoft’s...
Your mail has been sent successfully. You will be contacted as soon as possible.
Your message could not be delivered! Please try again later.