on 05-02-2014 1:37 AM
Based on the blog post Developing a simple List based SAPUI5 Application I am trying to create the exact same application. But I am facing the below error and the application fails to load.
All help appreciated.
Hi Sridhar,
Were you able to resolve this issue? If yes, could you please help me with the same as i am facing the same issue. TIA.
Regards,
Sumit Jindal
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sridhar,
sap.ui.app is not a library..plese include this sap.ui.commons replacing sap.ui.app..I hope this will solve your issue..
Thanks and regards,
Ashish Kumar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ashish,
adding jQuery.sap.require("sap.ui.app.Application"); to my Application.js helped.
Application.js
jQuery.sap.declare("Application");
jQuery.sap.require("sap.ui.app.Application");
sap.ui.localResources("util");
sap.ui.app.Application.extend("Application", {
init : function() {
jQuery.sap.require("util.Utility");
jQuery.sap.require("util.Formatter");
jQuery.sap.require("util.Connectivity");
jQuery.sap.require("util.BusyDialogHandler");
//Call the method that created the model - login dialog will popup as no credantial where given
createModel();
},
main : function() {
loadTheme("sap_bluecrystal");
sap.ui.localResources("app");
var root = this.getRoot();
sap.ui.jsview("app.App", "app.App").placeAt(root);
}
});
Regards,
Dennis Terhoeven
Looks like core SAPUI5 js libraries were not loaded i.e bootstrapping of sapui5.core.js could be missing.
Please check index.html and see if core js libraries for SAPUI5 did get loaded first. Pls share that too. I see lot of files not found which should be checked first as some core js files for sapui5 first get loaded then your app starts i.e bootstrapping step should be successful.
thanks
A
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The application was created by the Wizard.
Here you go the index.html...
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta http-equiv='Content-Type' content='text/html;charset=UTF-8' />
<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"
type="text/javascript" data-sap-ui-libs="sap.m, sap.ui.app">
</script>
<script>
I checked rechecked, but I am not able to understand why Application.js is in error.
User | Count |
---|---|
89 | |
10 | |
9 | |
9 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.