/scripts/ahub.form.attachments.js
0

validator not working for "Developing Web Apps with SAPUI5"

Nov 14, 2016 at 07:14 PM

30

avatar image

Presently, I just completed unit 5 of week 0 on the SAPUI5 course, see https://open.sap.com/courses/ui51.

The exercise here indicates that the developer is to add this line of code, then run the application in the SAP Web IDE:

<script src="https://sap.github.io/openSAP-ui5-course/Validator.js"></script>

This I have done, but when I run the web app there is not blue validator icon as indicated in the video. Does anyone have any suggestions?

Here is the full code of index.html:

<!DOCTYPE html>
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta charset="utf-8">
<title>openSAP - Developing Web Apps with SAPUI5</title>
<script
id="sap-ui-bootstrap"
src="https://sapui5.hana.ondemand.com/resources/sap-ui-core.js"
data-sap-ui-theme="sap_bluecrystal"
data-sap-ui-libs="sap.m"
data-sap-ui-compatVersion="edge"
data-sap-ui-preload="async"
data-sap-ui-resourceroots='{
"opensap.myapp": "./"
}'>
</script>
<script src="https://sap.github.io/openSAP-ui5-course/Validator.js"></script>
<script>
sap.ui.getCore().attachInit(function () {
// workaround begin: start a mock server
/*
jQuery.sap.require("sap.ui.core.util.MockServer");
var oMockServer = new sap.ui.core.util.MockServer({
rootUri: "/destinations/ES4/sap/opu/odata/IWBEP/GWSAMPLE_BASIC/"
});
oMockServer.simulate("metadata.xml", {
bGenerateMissingMockData: true
});
oMockServer.start();
*/
// workaround end
new sap.ui.core.ComponentContainer({
name : "opensap.myapp"
}).placeAt("content");
});
</script>
</head>
<body id="content">
</body>
</html>
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

0 Answers

Skip to Content