Showing results for 
Search instead for 
Did you mean: 

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


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!

Accepted Solutions (1)

Accepted Solutions (1)

Active Contributor

just like how the backend odata get called, do the same thing.

put it in your neo-app.json

{ "path": "/sap/bc/ui5_ui5/", "target": { "type": "destination", "name": "YOURDESTINATION", "entryPath": "/sap/bc/ui5_ui5/" }, "description": "*********" },

0 Kudos

Thank you for your answer. First time I did too many changes at once and didn't see, that this is the solution. Thank you, it works!

Answers (1)

Answers (1)

Active Contributor
0 Kudos

Hi Emanuel Huser,

You can check my below blog, in the 2nd section I tested it locally without deployment.

Let me know if you face any issues with that.



0 Kudos

Hi Mahesh, thank you very interesting blog! I'll do it like this in newer projects. Jun Wu answer was the solution for me.