cancel
Showing results for 
Search instead for 
Did you mean: 

Issue when oppening app in Fiorilaunchpad

Former Member
0 Kudos

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:

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member225463
Participant
0 Kudos

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

Former Member
0 Kudos

Hello Vikash,

In my case, it throws "HTTP request failed" and cannot read the odata service on fiori launchpad, but it works fine on sap web ide. Any idea ?

Thanks.

Former Member
0 Kudos

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

Former Member
0 Kudos

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.

Former Member
0 Kudos

Hello,

Did you find out any solution ? I have the same problem .

Former Member
0 Kudos

if I still remember, the problem were the relative path of the files