cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

index.js is not called in index.html in runtime

kbanerje202274
Participant
0 Kudos
195

Hi Team,

I have created the walkthrough project in the BTP.

index.html is not able to call index.js, can you check and tell the mistake.

index.html

<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<title>UI5 Walkthrough</title>
	<script
		id="sap-ui-bootstrap"
		src="resources/sap-ui-core.js"
		data-sap-ui-theme="sap_horizon"
		data-sap-ui-libs="sap.m"
		data-sap-ui-compat-version="edge"
		data-sap-ui-async="true"
		data-sap-ui-on-init="module:ui5/walkthrough/index"
		data-sap-ui-resource-roots='{
			"ui5.walkthrough": "./"
		}'>

	</script>
</head>
<body>
<div>Hello World</div>
</body>
</html>

index.js

sap.ui.define([], () => {
	"use strict";
	alert("UI5 is ready");
});

Thanks

Kaushik

SAP Portal/SAP UI5/SAP Fiori/Web Dynpro Java

Accepted Solutions (0)

Answers (0)

Ask a Question