Вы находитесь на странице: 1из 3

Here are Some Important SAPUI5 interview questions, which could help you clear an interview

What is required to start UI5 development in eclipse?

In the help menu in Eclipse, click Install New Software, paste one the URL according to the version of the Eclipse.
https://tools.hana.ondemand.com/lunafor Eclipse Luna (4.4)
https://tools.hana.ondemand.com/kepler for Eclipse Kepler (4.3)
just import

SAP UI5 toolkit from hana service marketplace. Also we need SAP UI5
ABAP Repository connector to deploy project in ABAP System.
Which control libraries are used for UI5 application development?
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.
How Navigation works in SAPUI5.
Sap uses two mechanisms, routing and EventBus. Routing Is specifically used for
bookmarking the URL. We define routing in component.js within the metadata. It
also defines the navigation path and hash changer which is used at the runtime
to change the url of the particular screen.
What is Component?
It is the first point of the application, it serves as an index, which encapsulates all the application
details, like view names, routing details, main view, applications type(Full Screen

or SplitApp), application service configuration etc.


There are 2 types of compponents,
Faceless components: Mainly without UIs, Used for business logic and helper
methods e.g. Formatters.
UI Component: typically component.js file which is made by extending
sap.ui.core.UI Component class.
What is Responsive Web Design?
A web application which gives same look and feel to the user in desktops and mobile devices.

What is the syntax to define a control in UI5?


var obj_name = new sap.m.ControlName(id of control,{ properties, events,
aggregations });
What is formatter in SAPUI5 and how to use it?
We need to use formatter when we need to perform some changes on the back end property data on the front end.
we can use formatter while data binding to a property like as follows:
oControl = new sap.ui.commons.TextField({
value : {path : /path, formatter : function(oEvent){
return Value:+oEvent;
}}});
How many types of views are available in SAPUI5?
There are 4 types of views available:
1.

JS view

2.

JSON view

3.

XML view

4.

HTML view
How many types of data model are available in SAPUI5?

SAPUI5 has following predefined four data models available:


1. JSON Model Client-side model, supports two way binding.
2. XML Model Client-side model and intended for small data sets this is very
rarely used model.
3. Resource Model This is also client side model used to
maintain resource bundles, specially texts.
4. ODATA Model This is most important model of the four provided.

What all events/life cycle are available in SAPUI5s views controller?


There are 4 lifecycle available in SAPUI5s views controller, they are:
onInit() it is called when a view is instantiated and its controls have already
been created.
onExit() it is called when the view is destroyed, used to free resources and
finalize activities.
onAfterRendering() - when the view has been rendered and, therefore, its HTML
is part of the document.
onBeforeRendering() -It is called before the controller view is re-rendered and
not before the first rendering.
What is the main difference between OData Model and JSON Model?
The JSON model is a client-side model and, therefore, intended for small datasets, which are completely available
on the client.The OData model is a server-side model: the dataset is only available on the server and the client only
knows the currently visible rows and fields.
What is SAPUI5 Bootstrapping?
SAPUI5 Bootstrapping means loading and initializing SAPUI5 in any HTML page. Themes and Libraries are defined
in this.
In how many ways you can bind data to your controls?
We can bind data to any controls using three methods, Property, Element and Aggregation binding.
What are SAPUI5 Fragments?
Fragments are very light weight UI controls. Fragments are not completely like views but they act like a view.
Fragments are defined similar like views and are names like Fragment.fragment.xml.
Does Fragment have its own controller?
Fragments are created without controllers, they dont have their own controllers they share controller of the view
which is invoking it.
What is Metadata Annotations?
The service metadata document describes the structure of all resources in the service. This structural metadata
makes it easy to understand a service. We can explore service metadata at the address $metadata relative to the
service root.
What are common Metadata Annotations?
Following are some of the service metadata annotations which are common and a front end developer must know
these in order to understand the service and integrate it:
-edm:EntityContainer
-edm:EntitySet
-edm:EntityType
-edm:Property
-edm:NavigationProperty
-edm:AssociationSet

What is SAP Fiori?


SAPUI5 is client side HTML5 rendering framework or library and SAP FIORI is collection of and released as waves of
applications which are completely based on SAPUI5 framework. It means we can create applications using SAPUI5
framework and SAP FIORI is final product i.e. application. In SAPUI5 we have to code from scratch, but in Fiori
Application the custom application is already built and enhancements can be done on those custom apps.
How many types of fiori applications are there?
There are 3 types of fiori applications:

Transactional

Analytical

Fact Sheets
What is the difference between SAP Fiori and SAPUI5?
SAP FIORI is collection of standard applications based on SAPUI5 library provided by SAP. SAP FIORI applications

share some standard design guidelines and way in which these application are developed.
What is FIORI Launchpad and Explain it?
It is a home page for all the FIORI applications provided to. There are more than five hundred custom
app provided by SAP. This shows tile based UI where every UI redirects to assigned FIORI application.
This Launchpad is fully customizable according to your needs like theming and all.
How can you get the web browser of the client on which SAP Fiori application is running?
SAPUI5 library provides a special API sap.ui.Devicewhich 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.
What are Fiori Design Principles?
There are 5 design principles we need to keep in mind while designing SAP Fiori applications.
Role Based
Delightful
Simple
Responsive
Coherent

Вам также может понравиться