SAPUI5 Interview Questions

April 2, 2018 | Author: Jaya Sankar | Category: Json, Model–View–Controller, Java Script, Xml, Application Software


Comments



Description

I think UI5 has far more better look and feel . Many advantages in terms of User interface.Application is written in javascript, which is highly in demand in web application programming.  SAP UI5 is an open source which supports technologies such as OpenAJAX, LESS, ARIA etc.  The layout of the app is prepared with the use of HTML5 and CSS3, which provides flexible solutions dedicated to many devices and screen resolutions  . Support of jQuery means SAPUI5 has no constraints concerning the development of animations and effects  Open source libraries delivered by SAP allow developers to extend existing UI controls (dialogue windows, charts, tables, buttons, combo-boxes, data pickers, accordions) as well as to create new ones from scratch. To edit UI controls a developer can use the ECLIPSE editor  The SAPUI5 technology supports the MVC (model–view–controller) architecture pattern, which enables every programmer get well-structured and understandable code  The prepared SAPUI5 application can be stored directly on a built-in SAP web server or on open source platforms like Apache and Tomcat. It also runs on various platforms such as SAP NetWeaver AS ABAP/Java, Sybase (SAP Unwired Platform) and SAP Hana XS  SAPUI5 can work with the newest version of Sybase Unwired Platform  Communication between a SAPUI5 app and the SAP system is done through secure oData services - the newest standard prepared by Microsoft. OData is proven secure technology which is currently used by Facebook, eBay, Netflix and Stack Overflow.  SAPUI5 helps to increase your security thanks to its cross-domain policy and indirect connection to the SAP server through SAP NetWeawer Gateway, OData and the latest SUP (Sybase Unwired Platform)  SAPUI5 enables the combination of multiple data sources such as oData services, databases and external systems, as well as the data from multiple SAP systems, all in one app  BY connection do you mean getting data from ABAP systems and populate it in UI ?   If yes, then you can introduce Gateway system in middle of ABAP and frontend. You have to connect abap and gateway system with trusted RFC and create one gateway service which will get the data from backend system,  Once you have the service, you can create a UI5 application and consume this service to populate data in the UI. 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. we can use formatter while data binding to a property like as follows: oControl = new sap.g. · Faceless components: Mainly without UIs. Formatters. Sap uses two mechanisms. Used for business logic and helper methods e.ondemand. Which control libraries are used for UI5 application development? sap. aggregations }). How many types of views are available in SAPUI5? There are 4 types of views available: . sap. Routing Is specifically used for bookmarking the URL.ui libraries for desktop application development and sap.commons.js file which is made by extending sap. https://tools.m.4)  https://tools.layout for Fiori application development. routing details. main view. What is Responsive Web Design? A web application which gives same look and feel to the user in desktops and mobile devices.3) just import SAP UI5 toolkit from hana service marketplace. like view names. 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.ui. }}}).ui.ui. Also we need SAP UI5 ABAP Repository connector to deploy project in ABAP System. events.hana. There are 2 types of compponents.commons. · UI Component: typically component.com/lunafor Eclipse Luna (4.ControlName(“id of control”.UI Component class.com/kepler for Eclipse Kepler (4. formatter : function(oEvent){ return “Value:”+oEvent.table and sap. What is the syntax to define a control in UI5? var obj_name = new sap. applications type(Full Screen or SplitApp).m library along with sap.core.{ properties. it serves as an index. How Navigation works in SAPUI5. It also defines the navigation path and hash changer which is used at the runtime to change the url of the particular screen. We define routing in component. routing and EventBus.suite.js within the metadata.TextField({ value : {path : “/path”.ui.ui.hana. which encapsulates all the application details. application service configuration etc. What is Component? It is the first point of the application.ondemand. What all events/life cycle are available in SAPUI5’s views controller? There are 4 lifecycle available in SAPUI5’s views controller. We can explore service metadata at the address “$metadata” relative to the service root. Does Fragment have its own controller? Fragments are created without controllers. Fragments are not completely like views but they act like a view. XML Model – Client-side model and intended for small data sets this is very rarely used model. Property. What is the main difference between OData Model and JSON Model? The JSON model is a client-side model and.when the view has been rendered and. 2. · onAfterRendering() . ODATA Model – This is most important model of the four provided. . HTML view How many types of data model are available in SAPUI5? SAPUI5 has following predefined four data models available: 1.1. specially texts. therefore. Themes and Libraries are defined in this. which are completely available on the client.xml“. What is Metadata Annotations? The service metadata document describes the structure of all resources in the service. What is SAPUI5 Bootstrapping? SAPUI5 Bootstrapping means loading and initializing SAPUI5 in any HTML page. used to free resources and finalize activities. intended for small datasets.fragment. Fragments are defined similar like views and are names like “Fragment. they don’t have their own controllers they share controller of the view which is invoking it. JSON view 3. they are: · onInit() – it is called when a view is instantiated and its controls have already been created. supports two way binding. 4. 3. This structural metadata makes it easy to understand a service.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. · onExit() – it is called when the view is destroyed. JSON Model – Client-side model. its HTML is part of the document. In how many ways you can bind data to your controls? We can bind data to any controls using three methods. XML view 4. What are SAPUI5 Fragments? Fragments are very light weight UI controls. therefore. Resource Model – This is also client side model used to maintain resource bundles. JS view 2. · onBeforeRendering() -It is called before the controller view is re-rendered and not before the first rendering. Element and Aggregation binding. How can you get the web browser of the client on which SAP Fiori application is running? SAPUI5 library provides a special API “sap.Device“which can be used to for device and its feature detection. SAP FIORI applications share some standard design guidelines and way in which these application are developed.ui. application.e. This shows tile based UI where every UI redirects to assigned FIORI application. There are more than five hundred custom app provided by SAP. “edge” etc. in “sap.browser” API which returns boolean values. · Role Based · Delightful · Simple · Responsive Coherent Part B . but in Fiori Application the custom application is already built and enhancements can be done on those custom apps. What is FIORI Launchpad and Explain it? It is a home page for all the FIORI applications provided to. It means we can create applications using SAPUI5 framework and SAP FIORI is final product i. This API provides flags like “chrome”. What are Fiori Design Principles? There are 5 design principles we need to keep in mind while designing SAP Fiori applications. 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. In SAPUI5 we have to code from scratch. “mozilla”. 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. This Launchpad is fully customizable according to your needs like theming and all.ui. “firefox”.Device. json file of your app? Root view Supported device types Supported themes .1) Which open standards and tools are the foundation of SAPUI5 technology? D3.js for visualization ARIA for accessibility standards and keyboard handling jQuery for managing DOM elements and abstracting browser differences 2) What SAPUI5 control metadata is used to configure the UI elements at runtime? Associations Properties Aggregations 3) What are view types offered by SAPUI5? JavaScript views JSON views XML views 4) What is the purpose of a controller? To separate the UI and the processing logic To control the application flow by handling user events or updating the view 5) Name some standard controller hooks in SAPUI5? onInit – an event that is called when the view and the controller are instantiated onExit – an event that is called when the view and the controller are destroyed 6) What does MVC stand for? Model .View – Controller 7) What information can be stored in the manifest. 'Small'. components.ui 9) What is the name of the file where the descriptor for applications. 16px (1rem).app sap.ui5 sap.json file? sap. 'Medium' or 'Large' 14) What is aggregation binding used for? To bind a set of data entities to a list-like structure 15) Your JSONModel contains the following content: { "Employees" : [{ "Lastname" : "Karlson".8) Which of the following namespaces can be used in the manifest.json 10) For what stands the abbreviation JSON? Java Script Object Notation 11) Which data binding mode means 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. 32px (2rem). respectively)? Two-way 12) How would you add an icon from the SAPUI5 icon font to a button in an XML view? <Button text="Save Draft" icon="sap-icon://save" /> 13) Which predefined sizes for margins that stand for 8px (0. or 48px (3rem) are available in SAPUI5? 'Tiny'.5rem). and libraries is stored? Manifest. "Firstname" : "Karl" }] } . copy the URI.type.Currency 19) What coding do you need to add to your XML view to enable grouping in your list binding? group: true 20) Which of the following sequences of steps do you use to assemble the URL to access your OData service's metadata? · Run your app from SAP Web IDE and copy its URL into a new browser tab.model. Register to the validationError event on sap.json file. 23) When do you use element binding? When you want bindings of child controls to resolve their paths relative to the binding of the parent 24) What is the difference between aggregation binding and element binding? . and use it to replace the file path in the URL from Step 1. 21) How many filters can you apply on a list binding? As many as needed 22) What is the best practice for showing or hiding an SAPUI5 control at runtime? Set the “visible” property of the control to “true” or “false”.Float sap.json file. What is the binding path to Karl Karlson's first name? /Employees/0/Firstname 16) What do you need if you want to bind a list to data in your JSONModel? An array with the data in the JSONModel that you want to bind to the list A template list item to be cloned A bound list control 17) How can you access validation errors in SAPUI5? Set handleValidation to true in the manifest.model. go to “services”.DateTime sap. · Append “/$metadata” and press enter.ui.getCore().model.type.ui.ui.ui.type. 18)Name some types in SAPUI5? sap. · In your app's manifest. .. whereas element binding can be used to set the binding context of any parent control. 25) How is paging accomplished in oData query? Paging can be accomplished by using $skip in combination with $top. </Column> <Column demandPopin="true“ minScreenWidth="Tablet"> .. </Column> <Column demandPopin="true" . 28) What do you have to consider when choosing the SAPUI5 version for the application template? The SAPUI5 version must be available in your target deployment system.Aggregation binding is used for list-like structures. </Column> <Column demandPopin="false" minScreenWidth="Phone"> . The parameters’ values describe the interval of the data that is requested. 29) How many complete columns (that include the header) will this table display on a phone? <Table> <columns> <Column demandPopin="false" minScreenWidth="Tablet"> . 26) Name some OData query parameters? $skip $count $expand Part C 27) How do you enable the debugging option for SAP NetWeaver OData services? Use the URL parameter sap-ds-debug=true.... . minScreenWidth="Phone"> .LT 36) What can you do to enable your SAPUI5 application to adapt to the user’s device? As many controls are responsive out of the box.. an operator.ui.m. </Table> 2 30) What happens when you set the “minScreenWidth” property of a “sap.. 32) Name some semantic states in SAPUI5? Positive Negative Critical 33) How can you compose filters in SAPUI5? By creating multiple filters and concatenating them either with AND or OR By creating a single sap. check whether you have to do anything at all. based on the characteristics of the device .Filter object and specifying a path.ui.. and up to two values 34) Where are filters applied in SAPUI5? To an aggregation binding 35) Which filter operation can you use to filter items with a numeric value lower than X? sap. warning.FilterOperator.model.model. 31) What are semantic colors in sapui5? They are representations of states such as success. Set the compact density on devices without touch support. and error.Column” to “Tablet”? The column is shown only on screens that are larger or equal than the size of a tablet. </Column> <columns> . 37) What can a “device model” be used for? To check whether a device supports touch interaction To influence the user interface without coding. json file should you use to automatically display a target that is not found? Bypassed . 46) Which property of the routing configuration in the manifest. They need to be added to the “dependent” aggregation of the view to get access to the models. but the user needs to pull the page content down on touch devices to refresh it.ui. 40) Why is it useful to have fragments in your app? To create reusable UI parts without a designated controller or other behavior code 41) What happens in the DOM tree when nesting XML views? Each XML view creates its own DOM element regardless of the nesting level. Use fragments to define reused UI parts only once. The dialog is instantiated but not displayed. 45) What happens when you instantiate a dialog from a single-rooted fragment? The dialog instance is returned when you invoke the fragment factory. 42) What can you do to structure your application code better? Use subdirectories for related views and controllers.Device API? The device type (phone/tablet) Whether the device has touch support The browser name and version 39) Which control adapts its appearance on touch devices? The PullToRefresh control: It is represented as a simple button on non-touch devices.38) What information is provided by the sap. Put the functionality used in multiple controllers into a base controller and extend this controller in the other controllers in your app. 43) What are fragments primarily used for? To make parts of your view reusable 44) What are Dialogs in SAPUI5? They are rendered into a specific area (the static area) in the DOM. Create a composite control that reuses existing controls internally. 54) Which of the following are part of the control metadata? Aggregations Properties Events .core.json file? As many as you like 48) What is the correct sequence of called functions / handled callbacks of the OData model in the Add controller? on metadataLoaded .json file 50) How are unit tests for your app started in SAP Web IDE? By selecting the run configuration Run Unit Tests By right-clicking the unitTests. Extend the sap.createEntry .ui. 52) Which testing features are provided by the SAP Fiori Worklist application template? A test suite that calls all your unit and integration tests Clear separation of test and production code Unit test setup (QUnit) and basic test coverage 53) Which options are available in SAPUI5 if you want to create a custom control? Extend an existing control with your own features.47) How many targets can you configure within a route in the manifest.html file and selecting an option from the Run menu 51) How do you register a unit test in QUnit? Call QUnit.on success 49) What is the recommended place to configure a "TwoWay" binding for the OData model so that data changes in the view are written back to the model? In the "models" section of the manifest.submit .Control base class and build a new control.test() in your test code with a speaking test description and a callback that contains at least one assertion.qunit. You can make an aggregation invisible in the control API by setting the visibility to hidden. .55) What do you have to consider when defining control metadata? You can give an aggregation either one or many values by defining the multiplicity as “one” or “many”.
Copyright © 2024 DOKUMEN.SITE Inc.