cancel
Showing results for 
Search instead for 
Did you mean: 

CrossApplicationNavigation - Code not working , No Error on Console as well.

Former Member
0 Kudos

Hello,

I am trying my hands on Cross Application Navigation using Semantic Object Navigation. As mentioned in SAP library, I have loaded the following library in index.html for CrossApplicationService

https://sapui5.netweaver.ondemand.com/docs/api/symbols/sap.ushell.services.CrossApplicationNavigatio...

I have written this piece of code for navigation on button click from App 1 to App 2.

This code is not working in the app, and it is not navigating to App 2 ( and also throwing no error in Console ). However, when I test this code in console, it is successfully navigating to second app. Is there anything I am missing. Kindly help 🙂

Thanks in advance!

Accepted Solutions (0)

Answers (6)

Answers (6)

Former Member
0 Kudos

Hi Simon,

Thanks for your prompt reply. I had also tried the code earlier that you just sent me. It is not working for me 😕 However same code is working fine when tested in console. Could you please share your project code and your LPD Cust params for the UI5 app that you have deployed. May be I am missing something.

Cheers

Parth

sarath_k
Participant
0 Kudos

Hi Parth,

Iam facing the same issue. please let me know how did you resolve this probelm.

Thanks in advance

Regards,
Sarath

former_member194549
Contributor
0 Kudos

Hey,

the following code works fine for me.

var oCrossAppNav = sap.ushell.Container.getService("CrossApplicationNavigation");
			
oCrossAppNav.toExternal({
	target: {
		semanticObject: "<your_semantic_object",
		action: "display"
	}
})

btw: If you start your app over fiori launchpad, the index.html will not be executed. The FLP loads the component of you app and from there, the app will be started.

former_member194549
Contributor
0 Kudos

Hey,

the following code works fine for me.

var oCrossAppNav = sap.ushell.Container.getService("CrossApplicationNavigation");
			
oCrossAppNav.toExternal({
	target: {
		semanticObject: "<your_semantic_object",
		action: "display"
	}
})

btw: If you start your app over fiori launchpad, the index.html will not be executed. The FLP loads the component of you app and from there, the app will be started.

former_member194549
Contributor
0 Kudos

Hey,

the following code works fine for me.

var oCrossAppNav = sap.ushell.Container.getService("CrossApplicationNavigation");
			
oCrossAppNav.toExternal({
	target: {
		semanticObject: "<your_semantic_object",
		action: "display"
	}
});

btw: By including a UI5 in the Fiori Launchpad, the index.html will not be loaded. The Launchpad calls the apps component and from there, the app will be started.

Former Member
0 Kudos

Hi Jun

Yes I have run the app from FLP itself.

Regards

Parth

junwu
Active Contributor
0 Kudos

did u run your app from launchpad? if not, i will not work.