cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

How to reuse components on BTP

martin_zaman
Explorer
649

Hi all,

after transitioning to the BTP Workzone, we are encountering challenges in reusing external UI5 apps as components. All apps are deployed on BTP using the managed App Router and are part of SAP Workzone / SAP Launchpad. The path includes an ID that varies across the respective stages/subaccounts.

Im loading the other component in Component.js in the consumer App:

sap.ui.loader.config({
	paths: {
                 "externalAppToReuse": "/[app-id].comcompanydepartmentproduct.externalAppToReuse"
	}
});
sap.ui.require("externalAppToReuse.Component");

The [app-id] is a string that varies across the respective stages/subaccounts. How can I reference the correct app without relying on a static ID in the code?

Is there a way with destinations or over the XS-app.json? How would I do that?

Thanks an regards,

Martin

Accepted Solutions (0)

Answers (1)

Answers (1)

0 Likes

Hi martin_zaman ,

Did this issue got resolved ??? I am also facing the same issue.