cancel
Showing results for 
Search instead for 
Did you mean: 

Navigation error in service CrossApplicationNavigation

rajiv_kumar20
Explorer
0 Kudos

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

Accepted Solutions (0)

Answers (2)

Answers (2)

0 Kudos

Could you please show me your manifest file for the navigation configuration? I think you might missing some config in manifest like this:

gill367
Active Contributor
0 Kudos

Is your application running inside the shell (Fiori launchpad)?

Also check the documentation of this class "

sap.ushell.services.CrossApplicationNavigation

"

JsDoc Report - SAP UI development Toolkit for HTML5 - API Reference - sap.ushell.services.CrossAppli...

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

rajiv_kumar20
Explorer
0 Kudos

Hello Sarbjeet,

Thanks for your reply.

I declared CrossApplicationNavigation service in a way mentioned in the document, but the same problem persists.

I am using the version 1.36 which I guess is the latest.

Rajiv

Former Member
0 Kudos

Hi Rajiv,

I am facing the same problem. Were you able to resolve it ?

Thanks

Shruti