Skip to Content

Cross Link HTML5 Apps on SAP Cloud Platform

What is the best way to link to other Apps in SAP Hana Cloud Platform without using Fiori Launchpad.

these 3 things we have tried:

  1. Hard coded URLs (uncool and dirty)
  2. via Destination? (doesn´t work - get some auth errors )
  3. via neo-app.json configurred application resource (doesn´t work, because the destinations are missing in the linked app)

https://stackoverflow.com/questions/48511198/cross-link-html5-apps-on-sap-cloud-platform

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Feb 08 at 05:16 PM

    Hi André,

    Yes, it would be possible to achieve what you want. However, you will need to develop a "main" application - which could be just a simple application that will contain a reference to the other apps. Then you open each child app on the main application's page - just like the examples shown on this blog.

    BTW: Application resources are to be used as resources (like images, etc.) on the context of your application. So the way you used neo-app.json is not correct. The correct way to define a child app is like so:

     {
          "path": "/mychildapp/",
          "target": {
            "type": "application",
            "name": "mychildapp"
          },
          "description": "My Child App"
     }

    When you place a page pointing to that path it will render the 1st view of your child app.

    In that sense, the maintenance of child apps has to be done on a main html5 app via neo-app.json file. The name of the app will be taken into account while the router looks into this settings and it will be replaced with the url that points to your app.

    Regards,
    Ivan

    Add comment
    10|10000 characters needed characters exceeded

    • This doesn´t work for us. Because every app has different destinations and somehow after redirect to the linked application we are not in the scope of the linked application but in the scope of the source/parent application.

      We solve this problem for now via serverside xsjs service which response with the correct links to the other apps.