Skip to Content

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!

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Best Answer
    Posted on Sep 06, 2019 at 03:02 PM

    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": "*********" },

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Sep 08, 2019 at 05:44 AM

    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.



    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.