on 02-09-2016 7:49 AM
Hello,
I want to navigate to another application from my fiori app in abap environment(bsp), and I am using
var oCrossAppNavigator = sap.ushell.Container.getService("CrossApplicationNavigation");
However, this line throws an error in the browser,
Uncaught TypeError: Cannot read property 'getService' of undefined
I have included sap.ushell in the libraries in bootstrap, but this problem persists.
Appreciate any suggestions on what can be the cause.
Thanks
Rajiv
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Is your application running inside the shell (Fiori launchpad)?
Also check the documentation of this class "
"
Sample code here
var xnavservice = sap.ushell && sap.ushell.Container && sap.ushell.Container.getService;
&& sap.ushell.Container.getService("CrossApplicationNavigation");
var href = ( xnavservice && xnavservice.hrefForExternal({
target : { semanticObject : "Product", action : "display" },
params : { "ProductID" : "102343333" }
})) || "";
Also what is your UI5 library version.
Regards,
Sarbjeet Singh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
9 | |
8 | |
6 | |
6 | |
6 | |
5 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.