Hi All,
I was going through the walkthrough tutorial and creating this in eclipse. I reached till step 8 and it was working fine in eclipse. Now I copied all my folders and files to WebIDE and when I tried to run the index.html file as web application, it shows error that "sap is not defined". PFB the screenshots and code of index file.
<!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="resources/sap-ui-core.js" data-sap-ui-theme="sap_bluecrystal" data-sap-ui-libs="sap.m" data-sap-ui-bindingSyntax="complex" data-sap-ui-compatVersion="edge" data-sa-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 class="sapUiBody" id="content"> </body></html>
Please help me in resolving this.
Regards,
Ekansh