Dear all,
I'm having some issues with one of my custom app. I'm trying to deploy it in Launchpad and followed the steps exactly. However I'm getting Could not open app error.
I looked at this thread Error:The specified component controller 'sravya.view.App.Component' could not be found!
based on Maksim Rashchynski response, I changed my LPD_CUST (initially I had some dummy values there in the component name). But after changing it, I don't know why the error is adding an additional Component to the namespace. I'm not sure what I'm missing.
When I checked the logs in debugger (chrome), I got the below error
2016-01-21 14:50:12 Application initialization failed due to an Exception:
Error: The specified component controller 'location.calc.Component.Component' could not be found!
This is my Component.js file looks like
jQuery.sap.declare("location.calc.Component"); sap.ui.core.UIComponent.extend("location.calc.Component",{ createContent: function(){ var oView = new sap.ui.view({ id: "idMain", viewName: "location.calc.distancecalculator.Main", type: "JS", viewData: {component: this} }); var oModel1 = new sap.ui.model.json.JSONModel(); oModel1.loadData("model/units.json"); oView.setModel(oModel1,"unitdata"); var odataservice = "/sap/opu/odata/sap/Z_LOCATION_CALCULATOR_SRV/"; //var link = server + odataservice; var link = odataservice; var oModel = new sap.ui.model.odata.ODataModel(link, true); //oModel.oHeaders = { // AccessControlAllowOrigin: "*" //}; //oModel.setSizeLimit(LRPID.length); oView.setModel(oModel,"data"); return oView; } });
This is my index.html
LPD_CUST
Any assistance is much appreciated