on 06-29-2017 7:12 AM
Hi All,
Am new to SAP UI5, I have successfully deployed the UI5 app exported from Web IDE in trial cloud platform on to our local ABAP Repository. App runs with no issue in Cloud with json file as model. When I try to run app from FLP on ABAP Repository no data is displayed in the App. it opens app with no data.
Any help would be much appreciated.
Thanks
Sandeep Potharaj
fixed by updating resources path.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Experts,
Any help...still stuck.....my app runs in Cloud web IDE through FLP sandbox but returns no data on ABAP Repository on Local gateway server.
Cheers
Sandeep
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Experts,
Any help...still stuck.....my app runs in Cloud web IDE through FLP sandbox but returns no data on ABAP Repository on Local gateway server.
Cheers
Sandeep
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
***As I mentioned this is my first UI5 app am developing without any training and guidance***
When I click on the tile in FLP it opens the app with no data and throws error as below:
formatter function .formatter.getCurrencySymbol not found! -
formatter function .formatter.getStatusText not found! -
The following problem occurred: error - <html><head></head><body>File ui2/ushell/shells/abap/model/models.json NOT found!</body></html>,404,NOT FOUND.Have a json model located at - ./model/models.json
Component.js code:
zporeportforscm is project name in Web IDE
sap.ui.define([
"sap/ui/core/UIComponent",
"sap/ui/Device",
"zporeportforscm/model/models"
], function(UIComponent, Device, models) {
"use strict";
return UIComponent.extend("zporeportforscm.Component", {
metadata: {
manifest: "json"
},
/**
* The component is initialized by UI5 automatically during the startup of the app and calls the init method once.
* @public
* @override
*/
init: function() {
// call the base component's init function
UIComponent.prototype.init.apply(this, arguments);
this.getRouter().initialize();
// set the device model
this.setModel(models.createDeviceModel(), "device");
}
});
});
sap.ui.define([
"sap/ui/core/mvc/Controller"
], function(Controller) {
"use strict";
var initialise = function() { var oModel = new sap.ui.model.json.JSONModel();
oModel.loadData("./model/models.json");
this.getView().setModel(oModel);
var oResourceBundle = new sap.ui.model.resource.ResourceModel({ bundleName : "zporeportforscm.controller.V_Root_View" });
// Assign the resource model to the current view using the name "i18n"
this.getView().setModel(oResourceBundle, "i18n"); };
return Controller.extend("zporeportforscm.controller.V_Root_View", {
onInit : initialise
});
});
Thanks for your time guys.
Sandeep
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
check the launchpad admin console and please share the error screenshots
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
What you open the app from the Fiori Launchpad are here any error message(s) displayed in the browser console? Also in the Network tab can you see any request failing?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
your code?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
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.