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
HubSpot SAP Integration
What is HubSpot? HubSpot is one of the leading inbound marketing tools in its industry, enabling businesses to manage all their marketing, sales, and...
What is Agile Project Management?
There are many project management methodologies that project managers can choose from to best run projects. One of these methodologies is Agile...
What is New for SAP Integration Suite?
SAP Integration Suite is constantly evolving and adding new features to help businesses accelerate their digital transformation journeys. In this...
Fiori Launchpad Designer and Configurations
The Fiori Launchpad Designer, is a crucial configuration tool within the SAP Fiori system for managing catalogs, groups, and tiles, offers...
Groovy Scripting in SAP Integration Suite
What is Groovy and Groovy Script?Groovy is a versatile and powerful language for the Java platform. It has static-typing and static compilation...
Main Features and Benefits of SAP TM
In today's globalised and rapidly increasing technology, competing with competitors has become more challenging than ever. In such a business world,...
SAP BTP (Business Technology Platform) All You Need to Know
In today's fast-paced business environment, companies need to be agile, data-driven, and ready to embrace digital transformation. SAP BTP provides...
What is SAP Continuous Integration and Delivery?
Continuous integration and continuous deployment are two approaches to software development designed to improve code quality and ensure fast...
Germany E-Invoicing: Requirements and SAP X-Rechnung
The Wachstumschancengesetz (Growth Opportunities Act), which came into effect on March 22, 2024, introduces a phased mandatory e-invoicing...
Your mail has been sent successfully. You will be contacted as soon as possible.
Your message could not be delivered! Please try again later.