0% found this document useful (0 votes)
6 views7 pages

UI5 Quest

The document provides an overview of various concepts and components in SAPUI5, including navigation mechanisms, data models, view types, and design patterns. It discusses the roles of components, formatters, and fragments, as well as the importance of controllers and metadata annotations. Additionally, it highlights best practices for application development, including responsive design and validation techniques.

Uploaded by

vaishtk91
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views7 pages

UI5 Quest

The document provides an overview of various concepts and components in SAPUI5, including navigation mechanisms, data models, view types, and design patterns. It discusses the roles of components, formatters, and fragments, as well as the importance of controllers and metadata annotations. Additionally, it highlights best practices for application development, including responsive design and validation techniques.

Uploaded by

vaishtk91
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 7

C2 - Confidential

Q3. Explain the Navigation concept in SAPUI5.


Ans: SAPUI5 uses two mechanisms for navigation in applications those are EventBus and Routing where
the latter supersedes SAPUI5 1.16. sap.ui.core.routing is the class used for the routing.
We define routing in components metadata in the “routing” key.
Q4. What is a Component?
Ans: Component or Component.js is the first point of our application or we can say bthat it serves as
index which encapsulates all our applications details i.e. view names, routing details, main view,
applications type(Full Screen or SplitApp), application service configuration, etc..
Q5. When and How to use formatter in SAPUI5?
Ans: 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;
}}});
Q6. What all design patterns are recommended/available in SAPUI5?
Ans: SAP recommends following application design patterns keeping in mind design consistency of the
applications:
1. Master-Detail
2. Master-Master-Detail
3. Full Screen
4. Full Screen-Full Screen-MasterDetail (Multi Flow)
Q7. What all types of data models available in SAPUI5?
Ans: As SAPUI5 follows MVC(Model-View-Controller) there model plays crucial role in the framwork.
SAPUI5 has following predefined four data models available:
 JSON Model – Client-side model, supports two way binding.
 XML Model – Client-side model and intended for small data sets this is very rarely used model.
 Resource Model – This is also client side model used to maintain resource bundles, specially
texts.
 ODATA Model – This is most important model of the four provided. This is server side model,
supports two way binding ODATA model currently supports ODATA version 2.0.
Q8. What all types of views are available in SAPUI5?
Ans: There are following predefined three types of view available in SAPUI5:
1. JSON view
C2 - Confidential

2. JavaScript View(JS View)


3. HTML View
Question four. What Is Responsive Web Design?
Answer :
A internet application which gives equal look and experience to the consumer in computer systems and
cellular gadgets.

Question 5. What Is The Syntax To Define A Control In Ui5?


Answer :
var obj_name = new sap.M.ControlName(“identity of manage”, homes, occasions, aggregations );
SAP CRM Functional Interview Questions
Question 6. What Is Formatter In Sapui5 And How To Use It?
Answer :
We need to use formatter when we need to carry out a few changes on the again quit property statistics
on the front end.
We can use formatter while statistics binding to a belongings like as follows:
oControl = new sap.Ui.Commons.TextField(
price : course : “/path”, formatter : characteristic(oEvent)
go back “Value:”+oEvent;
);
Q11. What are SAPUI5 Fragments?
Ans: Fragments are very light weight UI controls and part of another UI. Fragments are not completely
like views but they act like a view. Fragments are defined similar like views and are names like
“myFragment.fragment.xml“.
Q12. Does Fragment have its own controller?
Ans: Fragments are created without controllers, they don’t have their own controllers they share
controller of the view which is invoking it.
Q13. In how many ways you can bind data to your controls?
Ans: We can bind data to any controls using three methods, Property, Element and Aggregation binding.
Q14. What is SAPUI5 Bootstrapping?
Ans: SAPUI5 Bootstrapping means loading and initializing SAPUI5 in any HTML page. The most important
library or resource loaded in SAPUI5 bootstrap is “sap-ui-core.js”. Apart from this theme for the
application, SAPUI5 libraries etc are declared in the bootstrapping.

Question 1. Which Control Libraries Are Used For Ui5 Application Development?
C2 - Confidential

Answer :
sap.Ui.Commons, sap.Ui.Desk and sap.Suite.Ui libraries for computing device application improvement
and sap.M library at the side of sap.Ui.Layout for Fiori software development.
Q10. What is the main difference between OData Model and JSON Model?
Ans: 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.
Question nine. What All Events/life Cycle Are Available In Sapui5’s Views Controller?
Answer :
There are four lifecycle to be had in SAPUI5’s perspectives controller, they're:
onInit() – it is known as while a view is instantiated and its controls have already been created.
OnExit() – it's far referred to as while the view is destroyed, used to free resources and finalize sports.
OnAfterRendering() - when the view has been rendered and, therefore, its HTML is a part of the
document.
OnBeforeRendering() -It is known as before the controller view is re-rendered and now not earlier than
the first rendering.
Question 15. What Is Metadata Annotations?
Answer :
The provider metadata report describes the structure of all resources in the provider. This structural
metadata makes it clean to recognize a carrier. We can explore carrier metadata at the cope with
“$metadata” relative to the carrier root.
Question sixteen. What Are Common Metadata Annotations?
Answer :
Following are a number of the carrier metadata annotations that are common and a front end developer
should recognize these with a view to understand the carrier and integrate it:
edm:EntityContainer
edm:EntitySet
edm:EntityType
edm:Property
edm:NavigationProperty
edm:AssociationSet
Question 18. How Many Types Of Fiori Applications Are There?
Answer :
There are three kinds of fiori packages:
Transactional
Analytical
Fact Sheets
C2 - Confidential

Question 22. What Are Fiori Design Principles?


Answer :
There are five layout ideas we want to maintain in thoughts even as designing SAP Fiori packages.
Role Based
Delightful
Simple
Responsive
Coherent
Question 24. What Sapui5 Control Metadata Is Used To Configure The Ui Elements At Runtime?
Answer :
Associations
Properties
Aggregations
Question 25. What Are View Types Offered By Sapui5?
Answer :
JavaScript perspectives
JSON perspectives
XML views

Question 26. What Is The Purpose Of A Controller?


Answer :
To separate the UI and the processing common sense
To manipulate the application go with the flow via managing person occasions or updating the view
SAP Enterprise Portal Interview Questions
Question 27. Name Some Standard Controller Hooks In Sapui5?
Answer :
onInit – an occasion that is called while the view and the controller are instantiated
onExit – an occasion that is referred to as when the view and the controller are destroyed
SAP PI Interview Questions
Question 28. What Information Can Be Stored In The Manifest.Json File Of Your App?
Answer :
Root view
Supported device types
Supported themes
Question 29. Which Of The Following Namespaces Can Be Used In The Manifest.Json File?
Answer :
C2 - Confidential

sap.Ui5
sap.App
sap.Ui
Question 36. What Do You Need If You Want To Bind A List To Data In Your Jsonmodel?
Answer :
An array with the statistics within the JSONModel which you need to bind to the list
A template listing object to be cloned
A sure list control

Question 37. How Can You Access Validation Errors In Sapui5?


Answer :
Set handleValidation to authentic inside the take place.Json report.
Register to the validationError occasion on sap.Ui.GetCore().

Question 38. Name Some Types In Sapui5?


Answer :
sap.Ui.Model.Kind.Float
sap.Ui.Model.Kind.DateTime
sap.Ui.Version.Type.Currency
Question forty. Which Of The Following Sequences Of Steps Do You Use To Assemble The Url To
Access Your Odata Service's Metadata?
Answer :
Run your app from SAP Web IDE and replica its URL into a brand new browser tab.
In your app's take place.Json record, go to “services”, copy the URI, and use it to replace the file course
inside the URL from Step 1.
Append “/$metadata” and press enter.
Question forty two. What Is The Best Practice For Showing Or Hiding An Sapui5 Control At Runtime?
Answer :
Set the “seen” assets of the control to “true” or “false”.

Question 43. When Do You Use Element Binding?


Answer :
When you need bindings of infant controls to resolve their paths relative to the binding of the discern
Question 44. What Is The Difference Between Aggregation Binding And Element Binding?
Answer :
C2 - Confidential

Aggregation binding is used for listing-like systems, while element binding can be used to set the binding
context of any figure control.
Question 52. What Can You Do To Enable Your Sapui5 Application To Adapt To The User’s Device?
Answer :
As many controls are responsive out of the box, test whether you need to do anything in any respect.
Set the compact density on devices with out touch guide.
Question sixty seven. How Do You Register A Unit Test In Qunit?
Answer :
Call QUnit.Check() to your take a look at code with a talking check description and a callback that
incorporates at the least one announcement.
Question 97. Why Is Automated Testing Beneficial For App Development?
Answer :
It notably reduces the guide testing attempt.
It is less difficult handy over the app to other builders.
You can avoid regressions and insects to your code.

33. Define the three logical layers of the MVC Pattern.


The three logical layers of the MVC Pattern are:
 Model logic, which is a business layer.
 View logic, which is a display layer.
 Controller logic, which is an input control.
34. How do we implement validation in the MVC?
We can implement validation in the MVC application with well-defined
validators in the System.ComponentModel.DataAnnotations namespace.
32. What are the steps to create the request object?
 Step 1: Filling route.
 Step 2: Fetching route.
 Step 3: Creating a request context.
 Step 4: Creating a controller instance.
22. What are different approaches to connect the database with the
application?
C2 - Confidential

The different approaches to connect the application and database include Code
First, Database First, and Model First.

You might also like