cancel
Showing results for 
Search instead for 
Did you mean: 

what is the extended sapui5 application name in component.js if app from HCP

preethi_ande
Participant
0 Kudos

Hi All,

1. We have implemented sapui5 application and deployed into hana cloud portal by using git repository, application name is ppspomat. This application content is under webapp, the app url is like "https://ppspomat-<tenant>.dispatcher.hana.ondemand.com/webapp/index.html"

2. I want to extend the above application, created the extended application by using fiori plugin in eclipse.

  in component.js

jQuery.sap.declare("com.art.pomatExt.Component");

sap.ui.component.load({

name: "com.art.pomat",

url: jQuery.sap.getModulePath("com.art.pomatExt") + "/../ppspomat" //tried in this way its not working

(or)

url: "ppspomat" //tried in this way its not working

});

  • i know the way for bsp applications like (/sap/bc/ui5_ui5/PKG/ppspomat), but for hcp apps how to do it.
  • what is the way to give the application path if standard application deployed in HCP.
  • this functionality should work for stand-alone apps, fiori apps(from FLP site) and on-premise apps

Please am new to this concept, please help me.

Thanks,

Preethi

Accepted Solutions (1)

Accepted Solutions (1)

jamie_cawley
Advisor
Advisor
0 Kudos

You can use Web IDE to generate this for you.  In the component.js it would declare something similiar to


name: "com.art.poma",

url: jQuery.sap.getModulePath("com.art.pomatExt") + "/parent"

and the neo-app.json would have


    {

      "path": "/webapp/parent",

      "target": {

        "type": "application",

        "preferLocal": true,

        "name": "ppspomat"

      },

      "description": "Original Application"

    },

    {

      "path": "/dist/parent",

      "target": {

        "type": "application",

        "preferLocal": true,

        "name": "ppspomat"

      },

      "description": "Original Application"

    },

Regards,

Jamie

SAP - Technology RIG

preethi_ande
Participant
0 Kudos

Hi Jamie,

Thank you for your replay. Created from web ide, its working now.

Answers (0)