Skip to Content
0

Custom SAP Web IDE app not working with XML view

Sep 01, 2017 at 09:47 AM

36

avatar image
Former Member

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>

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

0 Answers