Hi All,
Could you help me in resolving the below error in Chrome? It runs sometimes and suddenly it says SAP not defined and again it works( Working in all other browsers except chrome ).
hi,
resource is not getting pulled properly i guess, try to pull resorces online using below link, may help,
https://sapui5.hana.ondemand.com/resources/sap-ui-core.js
or, check this link, may be missed somethinkg in neo-app.json
-Akhilesh
Hi Akhilesh,
I am using the same resource path and this is plain UI5 application and we don't have neo-app in this.
<!DOCTYPE HTML> <html> <head> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta http-equiv='Content-Type' content='text/html;charset=UTF-8'/> <script src="https://sapui5.netweaver.ondemand.com/resources/sap-ui-core.js" id="sap-ui-bootstrap" data-sap-ui-libs="sap.m,sap.ui.layout,sap.ui.commons,sap.ui.core" data-sap-ui-theme="sap_bluecrystal"> </script> <!-- only load the mobile lib "sap.m" and the "sap_bluecrystal" theme --> <script src="Files/MainDisp.JS"></script> <script> sap.ui.localResources("ui5_demo_disp"); var splitApp = new sap.m.SplitApp(); var page = sap.ui.view({id:"idCreate1", viewName:"ui5_demo_disp.CreateDisp", type:sap.ui.core.mvc.ViewType.XML}); var Master = sap.ui.view({id:"idMaster", viewName:"ui5_demo_disp.Master", type:sap.ui.core.mvc.ViewType.XML}); splitApp.addMasterPage(Master); splitApp.addDetailPage(page); splitApp.placeAt("content"); </script> <link rel="stylesheet" href="css/style.css"> </head> <body class="sapUiBody" role="application"> <div id="content"></div> </body> </html>
Thanks,
Venkat.