SAP UI5 MVC Concept - SAP UI5

What is SAP UI5 MVC concept?

Model-View-Controller (MVC) is keep the application data extract from the user interactions. It helps to develop the web applications and make changes to the applications independently.
Model-View-Controller plays a different role in UI development −
  • The Model is responsible for managing the application data in the database/backend.
  • The View is responsible for defining the user interface to users. When a user sends a requests from his device, the view is responsible for data view as per the request submitted.
  • The Controller is used to control the data and view events as per user interaction by updating the view and model.


You can define Model-View-Controller concept in SAPUI5 with the following features −


  • Model acts as a bridge between the view and the application data.
  • Model is used to get the request from the view and respond as per the user’s input.
  • Model doesn’t depend on classes.


  • View is responsible to manage information display to the users.
  • Views are based on Model.


  • Controller is responsible for taking the input given by devices and communicates to model/view and to trigger correct action.
  • Controllers are based on model.
SAP UI5 offers Views and Controllers in the form of single files −
  • sap.ui.core.mvc.XMLView
  • sap.ui.core.mvc.JSView
  • sap.ui.core.mvc.Controller
  • sap.ui.core.mvc.JSONView

JSON Model

  • JSON model is a client-side model and is used for small data sets.
  • JSON model supports two-way binding. Data binding concept is mentioned in the latter half of this tutorial.
  • JSON model can be used to bind controls to JavaScript object data.

XML Model

  • XML model can be used to bind controls to XML data.
  • XML is also a client side model and hence is used only for small data sets.
  • XML model doesn’t provide any mechanism for server-based paging or loading of deltas.
  • XML model also supports two-way data binding.

All rights reserved © 2020 Wisdom IT Services India Pvt. Ltd Protection Status

SAP UI5 Topics