cancel
Showing results for 
Search instead for 
Did you mean: 

Custom SAP Web IDE app not working with XML view

Former Member
0 Kudos

When I am running the app with a XML view file, then the app stops after loading the HTML content, the XML part doesn't work.

However, when I am writing everything within the HTML file, then the app is running as expected.

Does anyone has a clue on how to resolve this?

I am following Open UI5 course and the codes are as below

HTML code--------------------------
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta charset="utf-8">
<title>Walkthrough</title>
<script
id="sap-ui-bootstrap"
src="https://openui5.hana.ondemand.com/resources/sap-ui-core.js"
data-sap-ui-theme="sap_belize"
data-sap-ui-libs="sap.m"
data-sap-ui-compatVersion="edge"
data-sap-ui-preload="async"
data-sap-ui-resourceroots='{
"sap.ui.demo.wt": "./"
}' >
</script>
<script>
sap.ui.getCore().attachInit(function () {
sap.ui.xmlview({
viewName : "sap.ui.demo.wt.view.App"
}).placeAt("content");
});
</script>
</head>
<body id="content">
</body>
</html>

XML code-----------------------
<mvc:View
xmlns="sap.m"
xmlns:mvc="sap.ui.core.mvc">
<Text text="Hello World"/>
</mvc:View>

Accepted Solutions (0)

Answers (0)