Skip to Content
0
Jun 18, 2020 at 08:02 AM

sap.ui.getCore().createComponent fails with sap ui5 version 1.72

353 Views

Hi Experts,

We have 2 sapui5 apps deployed onto Fiori launchpad that's running on version 1.44.

1. parentapp

2. childapp

The parent app loads the child component using sap.ui.getCore().createComponent().

jQuery.sap.registerModulePath("com.test.childApp", "/childApp"); 
//Load the child component 
var comp = sap.ui.getCore().createComponent({ 
                  name: "com.test.childApp",
                  url: "com.test.childApp", 
                  id: "com.test.childApp"
        });

The manifest.json for the child loads correctly when triggered from parent app on Fiori Launchpad version 1.44.

We are in the process of updating our Fiori launchpad version to 1.72 and this bit of code is erroring out since the manifest file path comes back as 404 not found.

The URL for the manifest.json in the child App when triggered from the parent app in v1.72 is as below:

https://flpnwc-c910xxxxx.dispatcher.ap1.hana.ondemand.com/cloud/flp/3.113.1/com.test.childApp/manifest.json

while in 1.44, the URL for loading the manifest.json, the URL path was being resolved to

https://flpnwc-c910xxxxx.dispatcher.ap1.hana.ondemand.com/sap/fiori/parentapp/childApp/manifest.json

Not sure why the manifest.json path is not being resolved correctly in the upgraded version.

Any help on this is really appreciated.

Thanks in advance.