Hi HCP and UI5 experts,
I have been playing around lately quite a bit with the functionalities of HANA Cloud Platform and I meet the following problem when suscribing my HTM5 applications from the main account to a subaccount.
I created an executable application lets call it "Fiori_App" and a no executable application "Fiori_lib" which contains common methods and data for future executable applications.
To execute "Fiori_App" we need to register the path from "Fiori_lib" before calling it:
jQuery.sap.registerModulePath("path.fiori_lib", "/sap/fiori/Fiori_lib");
And then we call an especific js file, for example:
jQuery.sap.require("path.fiori_lib.util.Utils");
Here is where the problem begins, normally if the destinations are configured in the HCP account and in the neo-app.json this call works just fine, which is the case in the main account. But when I create a new subaccount, I suscribe the applications and I create the destination in the subaccount, the call returns an error 500 (internal server error) when I try to call Utils.js.
I do not know where to problem could be. Maybe the path is different for subscribed Apps?? Or is it a problem from HCP??
If someone could give a me hand here, I will be gratefull. Thanks in advance.
The destinations are configured as follows:
Main account:
Property | Value |
---|---|
Name: | lib_local |
Type: | HTTP |
URL: | https://Fiori_lib-mainacoount.dispatcher.hana.ondemand.com/ |
Proxy Type: | Internet |
Authentication: | AppToAppSSO |
Use default JDK truststore set to true
Subaccount:
Property | Value |
---|---|
Name: | lib_local |
Type: | HTTP |
URL: | https://Fiori_lib-subaccount.dispatcher.hana.ondemand.com/ |
Proxy Type: | Internet |
Authentication: | AppToAppSSO |
Use default JDK truststore set to true