on 2016 Feb 19 8:37 AM
Request clarification before answering.
Hi ,
Try using the below code for bootstraping
Reposiotory call :
<script src="https://sapui5.hana.ondemand.com/resources/sap-ui-core.js"
id="sap-ui-bootstrap"
data-sap-ui-xx-bindingSyntax="complex"
data-sap-ui-libs="sap.m"
data-sap-ui-theme="sap_bluecrystal">
</script>
To call eclipse resources call
script src="resources/sap-ui-core.js"
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Allie
The problem with your CDN link is the version number in it.
(https://openui5.hana.ondemand.com/1.2.8/resources/sap-ui-core.js vs https://openui5.hana.ondemand.com/1.28.8/resources/sap-ui-core.js
In the log you see an error on the GET of the JS file.
Oh and you might want to get the SAPUI5 variant if you use the viz library, it is not in the openui5 set.
So either the link provided by Pinaki or if you really wish to use version 1.28.x:
https://sapui5.hana.ondemand.com/1.28.8/resources/sap-ui-core.js
Regards,
Vincent
Thanks Vincent,
thanks for pointing out, i have corrected, but did run 2 previous runs with https://sapui5.hana.ondemand.com/1.28.8/resources/sap-ui-core.js and
src="resources/sap-ui-core.js" with no success.
Please mark this Discussion with a Correct Answer (closes, but does not lock the Discussion) and Helpful Answer where appropriate. See http://scn.sap.com/community/support/blog/2013/04/03/how-to-close-a-discussion-and-why Even if you discovered the solution without any outside contributions, it helps others to understand what the solution turned out to be.
Do not use Assumed Answered as it confuses anyone looking for the specific answer. If you dig into the Getting Started link (top right of each SCN page), you are only instructed to mark Helpful or Correct Answers to Discussion responses.
Thanks, Mike (Moderator)
SAP Technology RIG
Hi Allie,
I am facing the same problem here.
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<link rel="stylesheet" href="app/css/MobileStyles.css">
<!-- src Location of SAP UI5 libraries need to be changed to refer to right location -->
<script src="resources/sap-ui-core.js" id="sap-ui-bootstrap"
data-sap-ui-libs="sap.ui.commons"
data-sap-ui-theme="sap_goldreflection">
</script>
<script>
sap.ui.Resources("Authentication");
jQuery.sap.require("Authentication.Authentication");
$(document).ready(function(){
authenticate();
});
</script>
</head>
<body class="sapUiBody" role="application">
<div id="content"></div>
</body>
</html>
Facing Uncaught ReferenceError: sap is not defined .sap.ui.Resources("Authentication");
pls help.
Thanks in Advance.
Puneet
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Puneet,
Do you have a Webserver running like Apache Tomcat? see walkthru note below...
if you dont, here is a helpful link to install Apache Tomcat 7.0.68 and to configure your server in Eclipse:
https://wolfpaulus.com/journal/mac/tomcat7/
Tutorial: Configuring and Using Apache Tomcat 7 with Eclipse
hope this helps,
Regards,
Allie
| User | Count |
|---|---|
| 9 | |
| 7 | |
| 6 | |
| 4 | |
| 3 | |
| 3 | |
| 3 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.