Professional Documents
Culture Documents
SAP UI5 Interview Q&A
SAP UI5 Interview Q&A
SAP UI5 Interview Q&A
Q3. What is the main difference between HTML5 and SAP UI5?
A: HTML5 is a markup language and it doesn’t have programming capabilities but SAP
UI5 is a framework which is based on MVC approach to build web applications.
HTML5 is mainly for the purpose of creating a simple web page without formatting and
logic but UI5 provides standard style and components to build rich UIs.
Q6. Which control libraries are used for UI5 application development?
A: sap.ui.commons, sap.ui.table and sap.suite.ui libraries for desktop application
development and sap.m library along with sap.ui.layout for Fiori application
development.
Q7. What is the syntax to define a control in UI5?
A: var obj_name = new sap.m.ControlName(“id of control”,{ properties, events,
aggregations });
1. JSON view
2. XML View
3. JavaScript View(JS View)
4. HTML View
Q 29. How to know the web browser of the client on which SAP Fiori application
is running using SAP UI5?
A: SAP UI5 library provides a special API “sap.ui.Device“ which can be used to for
device and its feature detection. This API provides flags like “chrome”, “firefox”,
“mozilla”, “edge” etc. in “sap.ui.Device.browser” API which returns boolean values.
1. Master – Detail
2. Master-Master-Detail
3. Full Screen
4. Full Screen-Full Screen-Master Detail (Multi Flow)
Does Fragment have its own controller?
A: Fragments are created without controllers, they don’t have their own controllers
they share controller of the view which is invoking it.
Q34.Use of manifest.json?
A: The app uses the manifest.json file as descriptor. The manifest.json file It replaces
the application configuration file. The manifest.json file defines static information
about the application, such as the name of the application or the location of various
files. It is written in JavaScript Object Notation (JSON) format.
Q35: Internationalization concept?
A: Internationalization(i18n) is actually the process of designing a software so that it
can be adapted to different languages across the world, here 18 stands for number of
alphabets between I & n. Localization is the process of adapting internationalized
software for a particular region or language by adding locale-specific components and
translating text.
onBeforeRendering()
This method is called every time the View is rendered, before the Renderer is called
and the HTML is placed in the DOM-Tree. BOLD_It can be used to perform clean-up-
tasks before re-rendering._BOLD
onAfterRendering()
This method is called every time the View is rendered, after the HTML is placed in the
DOM-Tree. It can be used to apply additional changes to the DOM after the Renderer
has finished.It can be used to do post-rendering manipulations of the HTML.
onExit()
This method is called upon destruction of the View. The controller should perform its
internal destruction in this hook. It is only called once per View instance, unlike the
onBeforeRendering and onAfterRendering hooks.It can be used to free resources and
finalize activities.
One Way: One-way binding meA a binding from the model to the view; value changes
in the model update all corresponding bindings and the view.
Two Way: Two-way binding meA a binding from the model to the view and from the
view to the model; value changes in the model and in the view update all
corresponding bindings and the view and model, respectively.
One Time: One-time binding meA from model to view once.
Property Binding: Property binding allows properties of the control to get
automatically initialized and updated from model data.
Aggregation Binding: Aggregation binding is used to automatically create child
controls according to model data.
Element Binding: Element binding allows to bind elements to a specific object in the
model data, which will create a binding context and allow relative binding within the
control and all of its children. This is especially helpful in master/detail scenarios.