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 Warehouse Management?
If you want to increase your sales and make your business more efficient, you'll need to optimize your logistics. Warehouses play a significant role...
E-Transformation Regulations in Turkey
With the technological developments in recent years, organizations in the public or private sector carry their financial process controls to the...
Fiori UI in SAP EWM: Next-Gen Warehouse User Experience
In the era of digital transformation, user experience (UX) is no longer a "nice-to-have"—it has become a strategic driver of productivity, user...
What is Vendor Management?
The process of an organization’s effort to control cost, decrease vendor-related risks, assure the best service deliverability that is possible and...
Managing Multiple Processes with Process Direct in SAP Integration Suite
On the Integration Suite platform, it may be necessary to manage multiple integration processes simultaneously. In this article, we will cover the...
Understanding SAP PI/PO Message Mappings
Integration is critical for businesses because it allows them to manage complex operations and processes across multiple systems, applications and...
Extensibility of Standard OData Services in SAP
In today’s fast-paced business environment, adapting existing solutions to meet specific needs is the key. SAP’s standard OData services offer a...
How SAP ERP Can Help Your Business Grow?
SAP ERP is an Enterprise Resource Planning (ERP) solution designed to streamline business processes of businesses. The solution performs many...
Benefits of SAP S/4HANA
Digital transformation is a continuous process of modernizing how businesses use technology to improve their operations, products, services, and...
Your mail has been sent successfully. You will be contacted as soon as possible.
Your message could not be delivered! Please try again later.