cancel
Showing results for 
Search instead for 
Did you mean: 

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

sahud
Participant
0 Kudos

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/manife...

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.

anuraj_rana
Explorer
0 Kudos

Hi Deepak,

Hope you are well!

I am currently facing the same problem while upgrading the the UI version. The parent app failed to load manifest.json file fo the chlidapp.

May I please know what approach you followed to fix this issue.

Thanks.

Accepted Solutions (0)

Answers (1)

Answers (1)

WouterLemaire
Active Contributor
0 Kudos

Hi, I’m don’t exactly know what goes wrong but I know working with components has been improved in the latest versions of ui5. I’m working with reusable components in an on premise app. Here I have to use the path and namespace to find the app dynamic. Depending on your use case you can also predefine the components you need in the manifest. Check this link for all possible options: https://ui5.sap.com/#/topic/346599f0890d4dfaaa11c6b4ffa96312


Hope this helps!