All SAPUI5 interview questions in one place, grouped by page. Read the page when an answer needs more depth.
How to practise: cover the answer, say yours out loud in 30–60 seconds, then compare.
01 · HTML5 & CSS3
1. What is the difference between HTML5 and SAPUI5?
HTML5 is the markup language standard (WHATWG Living Standard) that describes page structure. SAPUI5 is SAP's JavaScript UI framework: you use its controls in XML views, and UI5 renders them into HTML and CSS in the browser.
2. What is the DOM?
The Document Object Model – the tree of objects the browser builds when it parses the HTML. Each element, attribute and text is a node. JavaScript reads and changes the page through the DOM; you can inspect it in DevTools › Elements.
3. What is the difference between <head> and <header>?
<head> holds invisible information about the page (title, meta, CSS, scripts). <header> is a visible semantic block in the body, such as the page banner with logo and title.
4. Block-level vs inline elements?
Block elements (div, p, h1, ul, table, section …) start on a new line and take the full width. Inline elements (span, a, strong, img, input …) stay in the text line and are only as wide as their content. It is the default CSS display value and can be changed.
5. Why use semantic tags?
They describe the meaning of content (header, nav, main, article, footer), which helps screen readers, search engines and other developers. A <div> carries no meaning.
6. What does the viewport meta tag do?
<meta name="viewport" content="width=device-width, initial-scale=1"> tells mobile browsers to use the real device width instead of a zoomed-out desktop width. Without it responsive layouts and UI5 on phones do not work properly.
7. What are the three ways to apply CSS, and which is best?
Inline (style attribute, one element), internal (<style> in the head, one page) and external (linked .css file, whole site). External is best: reusable, cached, one place to maintain. In UI5 it is css/style.css registered in the manifest.
8. How does CSS decide which rule wins?
The cascade: !important first, then inline styles, then specificity (ids > classes/attributes/pseudo-classes > elements), and with equal specificity the rule that comes later wins.
9. Explain the box model and box-sizing: border-box.
Every element is a box of content, padding, border and margin. With the default content-box, width covers only the content; with border-box it includes padding and border, which makes sizes predictable.
10. Flexbox or Grid – when do you use which?
Flexbox for one direction (a toolbar row, a vertical list); Grid for two dimensions (dashboards, page layouts, card tiles). In UI5: HBox/VBox/FlexBox for Flexbox, CSSGrid/GridContainer for Grid.
11. How do you make a page responsive?
Viewport meta tag, relative units (rem, %), fluid Flexbox/Grid layouts and media queries (mobile first with min-width). UI5 adds responsive controls, sap.ui.Device and the compact/cozy density classes.
12. How do you style a UI5 app without breaking upgrades?
Use the theme (or a custom theme from the Theme Designer), standard classes such as sapUiSmallMargin, and own classes added with class / addStyleClass in css/style.css, using theme parameters (var(--sapBrandColor)). Never override internal .sapM… classes or rely on !important.
13. What happens between an XML view and the HTML you see in DevTools?
UI5 parses the XML view into a tree of control objects (e.g. a sap.m.Button with its properties). Each control's renderer writes the HTML with SAP's CSS classes and an ID prefixed with the view ID; the browser builds the DOM and applies the theme CSS plus your own classes. When a property changes, UI5 updates the DOM itself. So you work with the control API (byId, binding), and treat the generated HTML as read-only output.
02 · JavaScript, jQuery & Node.js
1. JavaScript is single-threaded – how can it do asynchronous work?
Your code runs on one thread, but slow operations (timers, HTTP, I/O) are handed to the runtime. When they finish, their callbacks go into a queue, and the event loop runs them when the call stack is empty – all microtasks (promise callbacks) first, then one task. That is concurrency through non-blocking I/O, not parallel execution.
2. What is the difference between var, let and const? What is the Temporal Dead Zone?
var is function-scoped, hoisted with the value undefined and can be re-declared. let and const are block-scoped and cannot be re-declared; const also cannot be re-assigned (object content can still change). All declarations are hoisted, but let/const/class stay uninitialised until their line – access before it throws a ReferenceError; that region is the TDZ. Use const by default, let if needed.
3. What is the difference between == and ===?
== converts types before comparing ("1" == 1 is true); === compares value and type without conversion. Always use === / !==.
4. How is this determined? What changes with arrow functions?
By the call: method call → the object; plain call → undefined in strict code (global object in sloppy code); new → the new instance; call/apply/bind → the given object. Arrow functions have no own this and use the surrounding one – ideal for callbacks inside UI5 controller methods, replacing var that = this and .bind(this).
5. What is a closure? Give a UI5 example.
A function that keeps access to variables of the scope it was created in, even after that scope has finished. Every sap.ui.define factory is one: helper variables defined in the factory are private to the module but usable by all its methods.
6. What is a Promise, and how do async/await relate to it?
A Promise represents the future result of an async operation: pending, then fulfilled (with a value) or rejected (with a reason); once settled it never changes. Consume it with then/catch/finally. An async function always returns a promise, and await pauses only that function until the promise settles – a rejection becomes an exception for try/catch. Run independent calls together with await Promise.all([...]); allSettled, any and race cover the other combinations.
7. What is the difference between a JavaScript object and JSON?
An object is a live value in memory and can contain functions, undefined and unquoted keys. JSON is a text format: keys and strings in double quotes, only strings, numbers, booleans, null, objects and arrays, no comments. Convert with JSON.stringify and JSON.parse.
8. Explain map, filter and reduce.
All three loop over an array without changing it. map returns a new array with each element transformed, filter returns the elements that pass a test, reduce combines all elements into one value (sum, object, grouped result).
9. What is the difference between ES modules and sap.ui.define?
ES modules are the language standard (import/export). sap.ui.define is UI5's asynchronous AMD-like module system: a dependency array of UI5 module paths and a factory function whose return value is the module. sap.ui.require loads modules on demand. UI5 TypeScript/ES class code is transpiled into sap.ui.define.
10. Is UI5 built on jQuery? Should you use jQuery in UI5 apps?
UI5 historically shipped with and used jQuery, but the jQuery.sap.* APIs are deprecated (since 1.58) and removed in UI5 2.x. Modern apps use UI5 modules (sap/base/*, sap/ui/dom/*), control APIs and native JavaScript – not jQuery.
11. What is Node.js and why does a UI5 developer need it?
Node.js is a JavaScript runtime (V8 + event loop + system APIs), not a framework. UI5 developers need it for npm and the tools built on it: UI5 Tooling (ui5 serve, ui5 build, ui5.yaml), SAP Fiori tools (fiori run, generator), the UI5 linter, and SAP CAP back ends (cds watch).
12. How do you debug a UI5 app?
F12 › Sources with breakpoints (F10 over, F11 into, Shift+F11 out, F8 continue) or a debugger; statement; the Network tab for OData calls; sap-ui-debug=true for readable UI5 sources; Ctrl+Alt+Shift+P (technical information, Support Assistant) and Ctrl+Alt+Shift+S (diagnostics); the UI5 Inspector extension.
13. Why must UI5 code load asynchronously, and how do you find old synchronous code?
A synchronous request blocks the only JavaScript thread, so the page freezes until the file arrives; browsers also deprecate synchronous XHR on the main thread. UI5 therefore loads modules asynchronously (sap.ui.define, sap.ui.require([...], cb), promise-based factories, data-sap-ui-async="true") and bundles the app into Component-preload.js. The UI5 linter (ui5lint) finds deprecated synchronous APIs, jQuery.sap.* and global access; the Support Assistant reports synchronous loading at runtime.
03 · SAPUI5 Fundamentals
Q1. What is SAPUI5, and how does it differ from OpenUI5 and UI5 Tooling?
SAPUI5 is SAP's HTML5/JavaScript UI framework for responsive enterprise web apps that follow the SAP Fiori design. OpenUI5 is its open-source core (Apache 2.0); SAPUI5 adds licensed libraries such as charts, smart controls and Fiori elements. UI5 Tooling is the Node.js CLI (ui5 serve, ui5 build) for developing UI5 projects.
Q2. What is bootstrapping, and which attributes matter?
Loading and initialising the UI5 core through the sap-ui-bootstrap script tag that loads sap-ui-core.js. Key attributes: src (CDN or local), theme, resource-roots (namespace → folder), async="true", on-init (e.g. ComponentSupport) and compat-version. In the launchpad there is no index.html: the launchpad bootstraps UI5 and starts the component.
Q3. Why does every app need Component.js and manifest.json?
The component is the app's entry point and the unit the Fiori launchpad starts; it extends UIComponent and provides the router. The manifest declares the app's ID, data sources, models, libraries, root view and routing, so the framework creates them automatically (manifest-first). Without a component an app cannot be embedded in the launchpad.
Q4. Name the main sections of manifest.json.
sap.app (ID, title, i18n, dataSources, crossNavigation), sap.ui (technology, device types), sap.ui5 (rootView, dependencies, models, routing, resources), sap.fiori (registration IDs, archetype) and platform sections such as sap.cloud for BTP.
Q5. Explain MVC in UI5. Can one view have two controllers?
The model holds data, the view renders the UI, and the controller handles events and changes model and view; binding keeps model and view in sync. A view has at most one controller; one controller class can be reused by several views, and views without a controller are allowed. Best practice: one controller per view, same name.
Q6. Why are XML views recommended? Which view types are deprecated?
XML views are declarative and enforce the separation of UI and logic; they have the best tool support and are required for key user adaptation, extension points and XML templating (Fiori elements). JS, JSON and HTML views are deprecated; typed views are the programmatic alternative.
Q7. What are the controller lifecycle hooks, and in which order do they run?
onInit (once, controls exist), onBeforeRendering and onAfterRendering (on every rendering), onExit (once, on destroy). Create models and attach route handlers in onInit; clean up in onExit; per-display logic goes into the route's patternMatched handler.
Q8. What is the difference between an aggregation and an association?
An aggregation is a parent-child relationship: the parent owns, renders and destroys its children (Page.content, List.items). An association is only a reference by ID to a control that lives elsewhere (Label.labelFor, ariaLabelledBy).
Q9. How do you get a control in a controller? What is its DOM ID?
this.byId("localId") (or this.getView().byId). In XML views the DOM ID is <viewId>--<localId>. Never use document.getElementById; for a global lookup by full ID use Element.getElementById (sap.ui.getCore().byId is deprecated).
Q10. What does sap.ui.define do, and how is it different from sap.ui.require?
sap.ui.define defines an AMD module: it declares dependencies, loads them asynchronously and returns the module (controller, component, formatter). sap.ui.require only loads modules on demand inside code without defining a module. Module names are class names with slashes: sap/m/Button.
Q11. Select vs ComboBox vs MultiComboBox vs MultiInput?
Select: choose one value, no typing. ComboBox: choose or type one value (validate free text). MultiComboBox: choose several values from a list. MultiInput: type with suggestions and collect several values as tokens. All use items (MultiInput: suggestionItems) with core:Item key/text.
Q12. How do you find the UI5 version of a running app and debug it?
Ctrl+Alt+Shift+P opens Technical Information (version, libraries, debug sources, Support Assistant); Ctrl+Alt+Shift+S opens the Diagnostics window. Add sap-ui-debug=true for readable sources, use the UI5 Inspector extension and the browser's Network tab for OData calls.
Q13. Name five deprecated UI5 APIs and their modern replacements.
jQuery.sap.require → sap.ui.define / sap.ui.require([...], cb); sap.ui.getCore().byId → this.byId or Element.getElementById; sap.ui.xmlview → XMLView.create; sap.ui.xmlfragment → loadFragment / Fragment.load; sap.ui.getCore().attachInit → Core.ready(); getMessageManager → Messaging; sap.ui.component → Component.create. All modern variants are asynchronous and return promises; the old ones are removed in UI5 2.x.
Q14. Scenario: an old app uses jQuery.sap.require, sap.ui.getCore().byId and a JS view. How do you prepare it for UI5 2.x?
Run the UI5 linter to list every finding and apply its autofixes. Convert modules to sap.ui.define with declared dependencies, replace getCore() calls with the dedicated modules (Element, Core.ready, Messaging, Theming, Lib), rewrite the JS view as an XML view, and make the bootstrap and manifest asynchronous (async="true", IAsyncContentCreation, async routing). Switch Belize to Horizon. Then test with the Support Assistant and the app's QUnit/OPA tests.
Q15. Scenario: why build the Sales Order Approval dashboard as a freestyle app, and how is it structured?
Fiori elements covers list report, object page and worklist floorplans; a one-screen dashboard with KPIs, quick actions and a free layout is not a standard floorplan (check the flexible programming model first). Structure: Component.js + manifest (V4 data source, i18n, routing), an App root view with a FlexibleColumnLayout, a Dashboard view (DynamicPage + table bound to /SalesOrder with a status filter), an OrderDetail view, a BaseController, a formatter for status text and colour, and a Reject dialog fragment. Approve/Reject call the service's bound actions.
04 · Data, Binding & Navigation
Q1. Which models does UI5 offer, and what is the difference between client-side and server-side models?
JSONModel, XMLModel and ResourceModel are client-side: all data is in the browser, sorting and filtering run locally. The ODataModel (V2, V4) is server-side: it requests data on demand, pages it, and sends filter, sort and changes to the OData service. A model is a client object; the OData service is the backend.
Q2. What are the binding modes, and what is the default per model?
OneTime (model to view once), OneWay (model to view on every change), TwoWay (both directions). Defaults: JSON, XML and OData V4 TwoWay; OData V2 and Resource model OneWay; metadata models OneTime.
Q3. Explain property, aggregation and element binding.
Property binding links one control property to one value. Aggregation binding links an aggregation to a collection and clones a template per entry. Element binding sets a binding context (one record) on a container, e.g. bindElement("/Products('P-100')"), so children bind with relative paths.
Q4. Absolute vs relative binding path?
An absolute path starts with / and is resolved from the model root (/products/0/name). A relative path has no leading slash and is resolved against the binding context set by an aggregation template or element binding (name).
Q5. Expression binding vs formatter vs type?
Expression binding ({= … }) is for short logic inside the view. A formatter is a controller or module function for more complex display logic; it is one-way. A type formats, parses and validates, so it supports two-way binding and input checks (Integer with constraints, Date, Currency).
Q6. How do you implement translation (i18n)?
Put texts in i18n/i18n.properties plus i18n_<lang>.properties, declare a ResourceModel named i18n in the manifest, bind {i18n>key} in views and use getResourceBundle().getText("key", [args]) in code. The runtime falls back from the specific language to the default file.
Q7. How do create, update and delete differ between the OData V2 and V4 models?
V2 has model methods: create, update, remove, callFunction, createEntry + submitChanges. V4 works through bindings: ODataListBinding.create, Context.setProperty or two-way binding (PATCH), Context.delete, operation bindings with invoke(), and submitBatch for own groups.
Q8. What is $batch, and how do you control when changes are sent?
One HTTP POST that carries several OData requests; changes inside a change set are atomic. V2: deferred groups collect changes until submitChanges. V4: $auto sends automatically, $direct without batch, an own update group waits for submitBatch(groupId).
Q9. How do you filter and sort a table?
Get the binding (getBinding("items")) and call filter([new Filter("Name", FilterOperator.Contains, sQuery)]) or sort(new Sorter("Price", true)). With OData this becomes $filter / $orderby on the server; with a JSONModel it runs in the browser.
Q10. How is routing configured, and how do you pass and read a parameter?
In manifest.json › sap.ui5 › routing: config (container control and aggregation), routes (name, pattern, target) and targets (views). Initialise the router in Component.init. Navigate with navTo("detail", { productId }) for the pattern products/{productId}, and read it in getRoute("detail").attachPatternMatched via oEvent.getParameter("arguments").productId.
Q11. What is a fragment, and how do you open a dialog from one?
A reusable UI part without its own controller. Load it with this.loadFragment({ name }) (or Fragment.load + addDependent), cache the promise, then open() the dialog; close it with close(). As a dependent it inherits the view's models and is destroyed with the view.
Q12. How do you deploy a UI5 app to an ABAP system and to SAP BTP?
ABAP: fiori add deploy-config creates ui5-deploy.yaml; npm run deploy builds and uploads the app as a BSP application with a transport (legacy: /UI5/UI5_REPOSITORY_LOAD); then configure the launchpad. BTP: an MTA project is built with mbt build, deployed with cf deploy to the HTML5 Application Repository, and added to SAP Build Work Zone.
Q13. What is a context in the OData V4 model, and how do you show the number of rows?
A context (sap/ui/model/odata/v4/Context) stands for one entity: a list binding creates one row context per entry, a context binding one bound context. Relative bindings resolve against it, and it offers requestObject, setProperty, delete, requestSideEffects. The row count comes from $count: true on the list binding: read it in the table's updateFinished event (total) or bind to $count on the list's header context (getHeaderContext()).
Q14. What are side effects, and how do you handle them in a freestyle app?
Values that the server changes as a consequence of an edit or action (status, totals, items). Fiori elements reads the @Common.SideEffects annotations automatically. In a freestyle app call oContext.requestSideEffects([{ $PropertyPath: "Status" }, { $NavigationPropertyPath: "_Item" }]) after the change, optionally with $$patchWithoutSideEffects on the binding.
Q15. Scenario: after Approve the detail page shows the new status, but the dashboard list still shows the order as waiting. Why, and how do you fix it?
The detail page was bound with bindElement, so it has its own context binding and its own copy of the order; the list binding still holds the old data. Fix: refresh the list binding after the action, or open the detail page with the list's row context (setBindingContext(oRowContext)) so both share one entity; for dependent values use requestSideEffects.
Q16. Scenario: a status column needs a text and a colour, and a quantity input must reject values below 1. Which binding features do you use?
Status text and colour: a formatter in model/formatter.js (or a short expression binding for the colour), with texts from i18n. Quantity: a type such as sap.ui.model.odata.type.Decimal with constraints: { minimum: '1' } in a TwoWay binding, so wrong input is rejected and shown as a value state; with the V4 model the type is derived from $metadata, you only add the extra constraint.
05 · UI5 Tooling, TypeScript & Custom Controls
Q1. What is the UI5 CLI, and what is ui5.yaml for?
The UI5 CLI (@ui5/cli, formerly UI5 Tooling) is the Node.js tool to serve, build and configure UI5 projects. ui5.yaml declares the project type and name, the UI5 framework (OpenUI5 or SAPUI5, version, libraries), build settings and custom tasks, server settings and custom middleware. ui5 serve runs a middleware chain in memory; ui5 build runs a task pipeline into dist/.
Q2. What is the difference between middleware and a build task?
Middleware handles HTTP requests of the development server (proxy, transpile, mock data) and exists only locally. A task transforms resources during the build (minify, preload, transpile, zip, deploy) and its result is shipped. Both can be custom extensions positioned with before… / after….
Q3. What does Component-preload.js contain, and why is it important?
All modules, XML views, fragments and i18n files of the component in one file, created by generateComponentPreload. It turns dozens of requests into one cacheable request. Missing preloads (for example deploying webapp/ instead of dist/) are a classic cause of slow apps.
Q4. Default build vs self-contained build?
The default build contains only the app; UI5 comes from the launchpad or CDN – right for ABAP and Work Zone apps. ui5 build self-contained also bundles the needed framework modules into resources/sap-ui-custom.js and rewrites index.html, so the app runs on any static web server without a CDN.
Q5. Walk through deploying a UI5 app to S/4HANA.
fiori add deploy-config creates ui5-deploy.yaml with the deploy-to-abap task (system, BSP name, package, transport; credentials from environment variables). npm run deploy builds and uploads through /UI5/ABAP_REPOSITORY_SRV; the BSP application is recorded in the transport and the app index is updated. Then catalog, target mapping and role make it visible. Fallback: /UI5/UI5_REPOSITORY_LOAD.
Q6. How does a UI5 app get to SAP BTP, and where does it run?
An MTA contains an html5 module (built and zipped) and a com.sap.application.content deployer bound to html5-apps-repo (app-host). mbt build and cf deploy store the zip in the HTML5 Application Repository. The managed app router of SAP Build Work Zone serves it; xs-app.json routes OData calls to a destination. The app is static content, not a running CF application.
Q7. How does TypeScript work with UI5 if the runtime only understands sap.ui.define?
You write ES classes with imports against @sapui5/types; ui5-tooling-transpile (Babel with the UI5 transform plugin) converts imports to sap.ui.define and classes to .extend() calls, using the @namespace JSDoc for the full class name. tsc --noEmit checks types separately. For custom controls @ui5/ts-interface-generator creates the declarations of the runtime-generated methods.
Q8. Explain the parts of a custom control and the apiVersion 2 renderer.
metadata declares properties, aggregations (also hidden ones for composite controls), associations and events; UI5 generates getters, setters, binding and fireX methods. init creates internal children. The renderer uses the semantic RenderManager API (openStart, class, attr, text, close); with apiVersion: 2 the framework patches the existing DOM instead of replacing HTML strings, which is faster and keeps focus. Event handlers such as onclick and onsapenter handle mouse and keyboard.
Q9. Fragment, reuse component or library – how do you decide?
A fragment for a piece of UI inside one app (it has no controller or models of its own). A reuse component for a UI part with its own logic, models and texts used by several apps (componentUsages + ComponentContainer). A library for many controls or components shared across many apps, with its own release cycle. Choose the lightest option.
Q10. What changes with UI5 2.x, and how do you prepare an app?
UI5 2.x removes APIs deprecated with or before 1.136: globals, jQuery.sap.*, sap.ui.getCore() helpers, synchronous loading and factories, JS/JSON/HTML views, old libraries and themes. Preparation: move to the latest long-term maintenance 1.x (1.136+), run the UI5 linter (with --fix), switch the manifest to descriptor 2.0, use UI5 CLI v4, test with async loading and strict CSP.
Q11. Scenario: the dashboard works locally but in the launchpad the OData calls fail with 404.
Locally the fiori-tools-proxy forwarded /sap/...; in production there is no proxy. Check that the dataSources URI is relative and correct for the target system, that the service is published (/IWFND/V4_ADMIN for V4) and, on BTP, that xs-app.json has a route to the right destination. Use the browser Network tab and the gateway error log.
Q12. Scenario: after a deployment users still see the old version of the dashboard.
Browser or server caching. On ABAP, check that the app index was recalculated (/UI5/APP_INDEX_CALCULATE after manual uploads) and that the cache buster info was generated; ask users for a hard reload only as a workaround. On BTP, check that the new .mtar really deployed (cf html5-list) and that applicationVersion was increased.
06 · Testing, Performance & Best Practices
Q1. Which test levels exist for UI5 apps, and which tool belongs to each?
Static checks (UI5 linter, ESLint, tsc), unit tests with QUnit and Sinon for formatters and logic, integration tests with OPA5 that drive the whole app against mock data, and end-to-end tests with wdi5 (WebdriverIO) against the deployed app and real backend. Many fast tests at the bottom, few slow ones at the top.
Q2. How is an OPA5 test structured?
Journeys written as opaTest with Given (arrangements such as iStartMyUIComponent), When (actions) and Then (assertions, iTeardownMyApp). Journeys call page objects created with Opa5.createPageObjects, whose waitFor calls find controls by view, type, ID and matchers (BindingPath, PropertyStrictEquals, I18NText) and apply actions (Press, EnterText). waitFor polls, so no timeouts are needed.
Q3. OPA5 vs wdi5?
OPA5 runs inside the app's browser context, usually with a mock server, and tests one app quickly and deterministically. wdi5 runs outside through WebDriver, can log on to the launchpad, cross apps and use the real backend, but is slower and needs test data management. Use both: many OPA5 journeys, a few wdi5 smoke tests.
Q4. What does the UI5 linter check, and how do you use it?
It statically checks JS, TS, XML, manifest and HTML files for deprecated APIs and libraries, global access, possible CSP violations and deprecated manifest or component settings – the blockers for UI5 2.x. Run npx ui5lint locally and in CI, --details for hints, --fix for automatic fixes, and configure ignores in ui5lint.config.mjs.
Q5. What is the Support Assistant?
A runtime rule engine started with Ctrl+Alt+Shift+P or sap-ui-support=true. It checks the running app for performance, accessibility, binding, memory and Fiori guideline issues and gives a severity and fix hint per issue; it can also run inside OPA5 tests.
Q6. Name the most important performance measures for a UI5 app.
Asynchronous loading everywhere, manifest-first component creation, deploying the preload build, lazy loading of rarely used libraries and dialogs, lean OData requests (autoExpandSelect, earlyRequests, paging, server-side filtering), one $batch per user action, fewer controls per row, and caching. Measure with the Network tab and the Support Assistant before optimising.
Q7. How does UI5 protect against XSS, and where can you still introduce it?
Controls render values as text and renderers encode through oRm.text() and oRm.attr(). You introduce XSS with innerHTML, jQuery .html(), string-based renderers, sap.ui.core.HTML without sanitising, or unvalidated URLs. Use FormattedText, encodeXML and URLListValidator.
Q8. What is CSP, and what does a UI5 app need to run under a strict policy?
Content Security Policy is a response header that restricts script, style and connection sources. A strict policy forbids unsafe-eval and inline scripts. UI5 needs unsafe-eval only for synchronous loading and some deprecated APIs and libraries, so an async app without inline scripts and deprecated APIs works. Test locally under ui5 serve with sap-ui-xx-csp-policy=sap-target-level-1:report-only.
Q9. OpenUI5 vs SAPUI5 vs UI5 Web Components?
OpenUI5 is the Apache-2.0 core of the framework; SAPUI5 adds SAP-licensed libraries such as charts, smart controls and Fiori elements and is what SAP products ship. UI5 Web Components are framework-independent Fiori-styled custom elements for React, Angular, Vue or plain JS, without models, OData or routing.
Q10. How do you make a UI5 app accessible?
Use standard controls, connect labels (labelFor, ariaLabelledBy), give icon-only buttons tooltips, add InvisibleText for context, never rely on colour alone, make custom controls keyboard-operable, use theme parameters so high-contrast themes work, and verify with the Support Assistant, keyboard-only use and a screen reader.
Q11. Scenario: the dashboard takes 9 seconds to open in the launchpad. How do you analyse it?
Open the Network tab: count requests (single module files mean no preload – check that dist/ was deployed), look for synchronous requests and large $batch responses or slow $metadata. Check the manifest for async routing, autoExpandSelect and lazy libraries; run the Support Assistant performance rules. If the OData response itself is slow, analyse the backend (CDS view, RAP determinations). Fix the biggest item, measure again.
Q12. Scenario: after the launchpad switched on asynchronous module loading, the dashboard shows a blank page.
The launchpad now sends a strict CSP and bootstraps UI5 asynchronously; the app still uses synchronous or deprecated APIs (jQuery.sap.require, sap.ui.xmlview, globals) or inline scripts, which are blocked. Read the console CSP and loader errors, run ui5lint to find the APIs, replace them with async module APIs, and test locally with the CSP report-only parameter before redeploying.