on 11-02-2015 10:45 AM
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
Hi,
To access static resources from another HTML5 application (or subscription) you don't need to work with destinations. you can just define a path in your neo-app.json which points to the referenced html5 application. See also https://help.hana.ondemand.com/help/frameset.htm?152cb759db2842db9851d404167d40bc.html
Best Regards,
Martin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You can do this, but it will add quite some performance penalty, as an additional request has to be executed on the server.
Have you checked the log file of your subscription for any errors? Keep in mind that app2appSSO works only in the context of the same account, which means if your application is called with something like app-subaccount.*, the URL in the destination must use the same account, like lib-subaccount.*
User | Count |
---|---|
95 | |
11 | |
11 | |
10 | |
9 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.