KEMBAR78
SAPUI5 and Fiori Interview Questions | PDF | Model–View–Controller | User Interface
0% found this document useful (0 votes)
563 views7 pages

SAPUI5 and Fiori Interview Questions

The document provides information about SAPUI5 and Fiori interview questions and answers. It defines SAPUI5 as a collection of libraries used to build desktop and mobile apps that run in browsers. SAP Fiori is the new design for SAP software using modern principles. While SAPUI5 is the technology, Fiori is the design. It also explains the Model-View-Controller architecture in SAPUI5 and differences between OData and JSON models.

Uploaded by

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

SAPUI5 and Fiori Interview Questions

The document provides information about SAPUI5 and Fiori interview questions and answers. It defines SAPUI5 as a collection of libraries used to build desktop and mobile apps that run in browsers. SAP Fiori is the new design for SAP software using modern principles. While SAPUI5 is the technology, Fiori is the design. It also explains the Model-View-Controller architecture in SAPUI5 and differences between OData and JSON models.

Uploaded by

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

+

SAPHANAInterviewQuestions
+
HadoopInterviewQuestions

FioriInterviewQuestions
SAPUI5/FioriInterviewQuestionsPart1
SAPUI5/FioriInterviewQuestionsPart2

15 0

SAPUI5andFioriInterviewQuestionsPart1

Recommendedarticlesbeforegoingthroughinterview
questions

PrerequisiteforSAPUI5andFioriCareerScopeandFutureGrowth
WhatisSAPUI5?
WhatisOpenUI5?Howit'sdifferentfromSAPUI5?
WhatisSAPFiori?Howit'sdifferentfromSAPUI5?
SAPUI5HelloWorldMyFirstSAPUI5Application
SAPFioriLaunchpad
WhatisSAPFioriCloudEdition?

WhatisSAPUI5?

InsimplewordsSAPUI5isacollectionoflibrariesthatdeveloperscanusetobuilddesktopandmobileapplicationsthatrunina
browser.
SAPUI5combineslatestwebtechnologieslikeHTML5,JavaScriptandCSSintoatoolkit.ItcanbeusedforbuildingWebapplications
ontheSAPplatform.
Toknowmore,refertoWhatisSAPUI5?

WhatisSAPFiori?HowitisdifferentfromSAPUI5?

SAPFioriisthenewfaceofSAPsoftware.Usingmoderndesignprinciples,SAPFioriprovidesarolebasedexperienceacrossall
linesofbusiness,tasks,anddevices.
Fioriisbasicallythedesignprinciples.AnappissaidtobeaFioriappifitfollowstheFioridesignguidelines.
TheprimarytechnologyusedforFioriisSAPUI5.
FioriisadesignprinciplewhileSAPUI5isatechnology.

Toknowmore,refertoWhatisSAPFiori?

WhatisOpenUI5?HowitisdifferentfromSAPUI5?


OpenUI5isopensourceversionofSAPUI5.InDecember2013,SAPUI5wasopensourcedunderthename"OpenUI5".
ItisnowavailableunderanOpenSourcelicense.Soyoucanuseitwithoutanypaymenttodomoreorlesswhateveryouwant.
Itdiffersonlyinthenumberoffrontendcontrolsthatareincluded,andthatismostlydowntoorganizationalreasonsonlyallofthe
importantcontrolsarepartofOpenUI5.

Toknowmore,refertoWhatisOpenUI5?

WhatisFIORILaunchpadandexplainit?
SAPFioriLaunchpadistheentrypointtoFioriappsonmobileanddesktopdevices.Itisarolebased,personalizedUIclientthat
enablesuserstoaccessSAPFioriapps.
TheLaunchpadcontainsvarioustilesinFiorisystem.TilesaresquareobjectsthatareusedtoaccessdifferentFioriApps.Accessto
thesetilesarebasedontheuserroles.

SAPFioritilesrunonmultipledevicetypesandprovidesasinglepointofaccessforbusinessapplicationssuchastransactional,
analytical,factsheet,smartbusinessapps.

Toknowmore,refertoSAPFioriLaunchpad.

ExplainMVCarchitectureinSAPUI5?

SAPUI5supportstheModelViewController(MVC)conceptasoftwarearchitecturalpatternforimplementinguserinterfaces.
TheMVCconceptisusedtoseparatetherepresentationofinformationfromtheuserinteraction.Thisseparationfacilitates
developmentandthechangingofpartsindependently.
Model,view,andcontrollerareassignedthefollowingroles:
TheviewisresponsiblefordefiningandrenderingtheUI.
Themodelmanagestheapplicationdata.
Thecontrollerreactstovieweventsanduserinteractionbymodifyingtheviewandmodel.

Thebelowdiagramwillmakeitmoreclear.

MVCconceptprovidesfollowingadvantages:
Itprovidesbetterreadability,maintainability,andextensibilityanditallowsyoutochangetheviewwithouttouchingtheunderlying
businesslogicandtodefineseveralviewsofthesamedata.

Viewsandcontrollersoftenforma1:1relationship,butitisalsopossibletohavecontrollerswithoutaUI,thesecontrollersarecalled
applicationcontrollers.Itisalsopossibletocreateviewswithoutcontrollers.Fromatechnicalposition,aviewisaSAPUI5controland
canhaveorinheritaSAPUI5model.

WhatisthemaindifferencebetweenODataModelandJSON
Model?

TheJSONmodelisaclientsidemodeland,therefore,intendedforsmalldatasets,whicharecompletelyavailableontheclient.
TheODatamodelisaserversidemodel:thedatasetisonlyavailableontheserverandtheclientonlyknowsthecurrentlyvisiblerows
andfields.

WhatisComponent.js/configurationfile?

Component.jsisthefirstpointofourapplicationorwecansaythatitservesasindexwhichencapsulatesallourapplicationsdetails
i.e.viewnames,routingdetails,mainview,applicationstype(FullScreenorSplitApp),applicationserviceconfigurationetc.

WhatisafragmentandviewsinSAPUI5?

FragmentsarepiecesofaUIwithouttheirowncontroller.Thenameofeachviewoffragmentisimportant.Afragmentmustbenamed
as<NAME>.fragment.xmlandaview<NAME>.view.xml

SAPUI5ViewsViewsarenothingbuttheapplicationpages.WedefineouruserinterfacebycreatingViews.Viewsisformedor
createdbyusingoneormoreControlsinitsayPage,SimpleForm,Dialog,Label,Inputetc.Everyviewhasitsowncontroller.

SAPUI5FragmentsFragmentsarethepiecesofUIjustlikeSAPUI5Views.WheneverweneedtousesomesimilarUIpartsmany
timesinourapplication/viewswecreateFragmentsofthoseUIpartsbecauseFragmentsarereusableandarelightweightcompared
toVIewsandControls.Fragmentsarestoredwithintheapplicationitselfandcanbeusedbythatapplicationonly.Fragmentsare
definedasViewonlyandcallingViewscontrollerissharedwithFragmentasFragmentsarenothavingtheirowncontrollers.

DoesFragmenthaveitsowncontroller?

Fragmentsarecreatedwithoutcontrollers,theydonthavetheirowncontrollerstheysharecontrolleroftheviewwhichisinvokingit.

WhenandHowtouseformatterinSAPUI5?

Weneedtouseformatterwhenweneedtoperformsomechangesonthebackendpropertydataonthefrontend.
Wecanuseformatterwhiledatabindingtoapropertylikeasfollows:
oControl=newsap.ui.commons.TextField({
value:{path:/path,formatter:function(oEvent){
returnValue:+oEvent
}
}
})
WhataretheLifecycle/hookmethodsofSAPUI5views
controller?

There4fourLifecyclemethodsavailableineverySAPUI5viewscontroller.Theseare

onInit()
onExit()
onAfterRendering()
onBeforeRendering().

onInitiscalledwhenaviewisinstantiatedanditscontrols(ifavailable)havealreadybeencreated.
onExitiscalledwhentheviewisdestroyedusedtofreeresourcesandfinalizeactivities.
onAfterRenderingwhentheviewhasbeenrenderedand,therefore,itsHTMLispartofthedocument.
onBeforeRenderingiscalledbeforethecontrollerviewisrerenderedandnotbeforethefirstrendering.

NextArticle:
SAPUI5andFioriInterviewQuestionsPart2

SPDevSupportEngineer
KeySkills:Sharepoint2010&2013,2016,Design&Development,Architecture.Apply
Nowjobs.monsterindia.com

Supportusbysharingthisarticle.

15 0

MostRecent

You might also like