on 01-28-2016 12:35 PM
Hello
I am facing some issues when running my app in Fiorilouchpad, it seems to be wrong javascript references
index.html
<script | |||
id="sap-ui-bootstrap" | |||
src="resources/sap-ui-core.js" | |||
data-sap-ui-theme="sap_bluecrystal" | |||
data-sap-ui-libs="sap.m, sap.ui.layout, sap.makit" | |||
data-sap-ui-xx-bindingSyntax="complex" | |||
data-sap-ui-resourceroots='{"rogga.ui.zresults_obra": "./"}' > | |||
</script> |
component.js
// set i18n model | |||
var i18nModel = new sap.ui.model.resource.ResourceModel({ | |||
bundleUrl : "i18n/messageBundle.properties" | |||
}); | |||
oView.setModel(i18nModel, "i18n"); |
var url = "/sap/opu/odata/sap/ZAPUR_RESULTS_SRV_01/"; |
var oModel = new sap.ui.model.odata.ODataModel(url, true); | ||
oView.setModel(oModel); |
Fiori Launchpad opens the APP with the url: https://dgw.multipla.local/sap/bc/ui5_ui5/ui2/ushell/shells/abap/Fiorilaunchpad.html#ZAPUR_RESULTS-d...
Problems:
Hello Michel,
As per the error , its trying to find out a file named mock.json which is not available.
Kindly put breakpoints in index file component file and try to check where that file is getting called.
Regards,
Vikash
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
As the error says the service is not found.
Have you activated the service?
To activate the OData service, see Front-End Server: Activate OData Services
In WebIDE are you running the service in mockmode?
Can you please post the error log shown in transaction /IWFND/ERROR_LOG.
Also which gateway deployment option are you using - Embedded or Hub?
Thanks,
Vinod
Hello,
Sorry for my terribly late return.
I found out the solution. When the application deployed on fiori launchpad, "/sap/bc/ui5_ui5/sap/" string is added to original oData service . That is why the service cannot be found.
When I set URIs hard codedly into component.js, the problem is solved.
Thank you.
Hello,
Did you find out any solution ? I have the same problem .
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.