cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to load data in UI5 app in ABAP Repository

former_member327199
Participant
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

former_member327199
Participant
0 Kudos

fixed by updating resources path.

Answers (6)

Answers (6)

former_member327199
Participant
0 Kudos

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

former_member327199
Participant
0 Kudos

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

former_member327199
Participant
0 Kudos

***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");
}
});
});

Then I got a root view controller:

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

karthikarjun
Active Contributor
0 Kudos

check the launchpad admin console and please share the error screenshots

saurabh_vakil
Active Contributor
0 Kudos

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?

junwu
Active Contributor
0 Kudos

your code?