Skip to Content
Sep 06, 2019 at 02:27 PM

Hana OnDemand SAP Webide - Loading Component from another App in Workspace

164 Views Last edit May 21, 2020 at 05:55 PM 3 rev


I have problem with registering the resource of another app in my webide workspace. The webide is running on hana cloud. Everything works fine if the two applications are deployed to the bsp repository on the frontend/gateway system. I only have a problem with the resource path, if I start the application directly in the webide itself.

In the init method in Component.js of AppOne i'll do the following. I register the module path with the sap bsp repository of apptwo."com.namespace.apptwo", "/sap/bc/ui5_ui5/sap/zapptwo");

This works fine if the app is deployed to the gateway system.

But if I start the app locally in the webide, I get the error

failed to load 'com/namespace/apptwo/Component.js' from /sap/bc/ui5_ui5/sap/zapptwo/Component.js:

I know this is the wrong path, but how can I set the correct path pointing to another Component.js file in my webide workspace. I tried every possible way with the routes in neo-app.json, but it's so frustrating and nothing works.

I appreciate your help!! Thank You!