SAP Home Learn Build Integrate Model Operate Extend with AI ConnectTutorial navigator Knowledge Graph API Devtoberfest Developer Advocates App Space

Manage my Account SAP Devs YouTube ↗ Learnings ↗ Community ↗ Provide Feedback ↗
Logout
โคข Open full site

SAPUI5 User Interface

SAP HANA XS Advanced, Creating a SAPUI5 user interface to consume XSJS and oData services

Overview

🎓 intermediate 15 min. SAP HANAIntermediateHTML5OdataSapui5Express Edition
Thomas Jung T Thomas Jung November 1, 2022
Created by September 6, 2016
Contributors

Prerequisites

Prerequisites

Steps

Step 1 Create a new HTML file
โ€”

Return to your web module and create a new folder named resources/odataView with an HTML file called index.html

new file
new file

Here is the complete coding for the new page.

HTML
<!DOCTYPE html>
<html>
<head>
	<meta http-equiv="X-UA-Compatible" content="IE=edge" />
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/>
	<meta name="viewport" content="width=device-width, initial-scale=1.0" />
   	<link type="image/x-icon" href="/images/favicon.ico" rel="shortcut icon">
    <link type="image/x-icon" href="/images/favicon.ico" rel="icon">
	<!-- <script id="sap-ui-bootstrap" src="https://sapui5.hana.ondemand.com/resources/sap-ui-core.js" -->
	<script id="sap-ui-bootstrap" src="{{{sapui5_sb.url}}}/resources/sap-ui-core.js"
		data-sap-ui-theme="sap_belize_plus"
		data-sap-ui-xx-bindingSyntax="complex"
		data-sap-ui-compatVersion="edge"
		data-sap-ui-preload="async"
		data-sap-ui-language="en"
		data-sap-ui-oninit="module:common/index"		
		data-sap-ui-resourceroots='{
        		"common": "../common",
				"root": "./",
				"opensap.odataTest": "./"}'		
		data-sap-ui-frameOptions="trusted">
	</script>
	<script type="text/javascript" src="/common/error.js" ></script>  
</head>

<!-- UI Content -->
<body class="sapUiBody" id="content">
</body>
</html>
Step 2 Create `csrf.js`, `error.js`, and `index.js`
+
Step 3 Create optional images folder
+
Step 4 Create `Component.js`
+
Step 5 Create manifest.json file
+
Step 6 Create `App.view.xml`
+
Step 7 Create fragments
+
Step 8 Create a controller for the main view
+
Step 9 Create a reusable Controller
+
Step 10 Add model helpers
+
Step 11 Text strings
+
Step 12 Run and test the web module
+

Resources

Discussion

Share feedback on this tutorial or join the conversation in SAP Community.

Submit detailed feedback Discuss in Community
Steps
Step 1 of 12
1. Create a new HTML file 2. Create `csrf.js`, `error.js`, and `index.js` 3. Create optional images folder 4. Create `Component.js` 5. Create manifest.json file 6. Create `App.view.xml` 7. Create fragments 8. Create a controller for the main view 9. Create a reusable Controller 10. Add model helpers 11. Text strings 12. Run and test the web module

Learn more →