Which of the following elements can be part of the UI5 application's index.html file? There are 2 correct answers to this question
Correct Answer: A,B
The index.html file is the entry point of the UI5 application. It contains the following elements:
* Framework Reference: This element specifies the location of the UI5 resources, such as libraries, themes, and controls. It can be done by using the data-sap-ui-resourceroots attribute or the sap.ui.localResources() function.
* Bootstrap: This element initializes the UI5 framework and loads the required libraries and components.
It can be done by using the script tag with the src attribute pointing to the sap-ui-core.js file and the data-sap-ui-xx attributes to configure the bootstrap parameters.
* Backend Connection: This element is optional and depends on the application logic. It can be used to establish a connection to the backend system, such as an OData service, by using the data-sap-ui-bindingSyntax attribute or the sap.ui.model.odata.v2.ODataModel() constructor.
* UI-Area: This element defines the HTML element where the UI5 content will be rendered. It can be done by using the data-sap-ui-oninit attribute or the sap.ui.getCore().attachInit() function to register a callback function that creates and places the UI5 root component or view.
References:
* SAP HANA 2.0 SPS06 - Application Development for SAP HANA1, Section 5.1.1, p. 131-132
* SAP HANA 2.0 SPS06 - Developing Web Apps with SAPUI52, Section 2.1, p. 17-20
* SAP HANA 2.0 SPS06 - Developing Web Apps with SAPUI52, Section 3.1, p. 37-40
* SAP HANA 2.0 SPS06 - Developing Web Apps with SAPUI52, Section 4.1, p. 59-62
* SAP HANA 2.0 SPS06 - Developing Web Apps with SAPUI52, Section 5.1, p. 81-84