cancel
Showing results for 
Search instead for 
Did you mean: 

Extension of fiori app on BTP (CF) - Issue with resolving namespace in Cloud Portal service

thomasnelissen
Participant
0 Kudos
555

Hi all

I am facing an issue with the Cloud Portal service.

I have an application deployed to the HTML5 repo of my subaccount, and I have added this application to a launchpad site in the Cloud Portal service. So far so good. The namespace is com.flexso.frmp.callcockpit

I have deployed another application, which is an extension of the previous application. The namespace is com.flexso.frmp.callcockpitext.

The extension application will only load if I first open the original application. If I open the extension application before opening the original application, the namespace com.flexso.frmp.callcockpit will not resolve.

The result of sap.ui.require.toUrl("com/flexso/frmp/callcockpit") if I first open the extension application:

'https://sapui5.hana.ondemand.com/1.107.1/resources/com/flexso/frmp/callcockpit'

The result if I first open the original application:

'/ea5ae094-9717-4673-8a07-164b92709032.frmp.comflexsofrmpcallcockpit/~031122104155+0000~'

How can I load the component of the original application in my extension app? I have tried using sap.ui.component.Load as well as sap.ui.core.Component.load, but it always results in not being able to resolve the namespace of the application.

The component.js of the extension application:

sap.ui.define([ "com/flexso/frmp/callcockpit"], function (callcockpit) { "use strict"; return callcockpit.extend("com.flexso.frmp.callcockpitext.Component", { metadata: { manifest: "json", } })});

The manifest.json of the extension application:

"sap.ui5": { "_version": "1.1.0", "dependencies": { "minUI5Version": "1.30.0" }, "extends": { "component": "com.flexso.frmp.callcockpit", "extensions": { "sap.ui.viewExtensions": { "com.flexso.frmp.callcockpit.view.Detail": { "FooterToolbarEnd": { "className": "sap.ui.core.Fragment", "fragmentName": "com.flexso.frmp.callcockpitext.fragment.FooterToolbarEnd", "type": "XML" } } }, "sap.ui.controllerReplacements": { "com.flexso.frmp.callcockpit.controller.Detail": "com.flexso.frmp.callcockpitext.controller.DetailExt" } } },

Thanks for your help!

Thomas

Accepted Solutions (1)

Accepted Solutions (1)

thomasnelissen
Participant
0 Kudos

Update: I found a solution myself.

The extension app should be deployed in the same space as the original application, and both applications should use the same instance of the destination service. I figure because the destination service instance defines the url of the central approuter, and both applications should use the same central approuter…

Answers (0)