cancel
Showing results for 
Search instead for 
Did you mean: 

How Navigate From one app to another app in fiori using cross app navigation

former_member187227
Participant
0 Kudos

Hi Experts

I want to navigate from one app to other app . For example app1 to app2 in fiori launchpad.Can you please suggest any steps or code referece for CrossAppNavigation.

I want to navigate from Z_APP_CHART to ZS4_HANA_F5_DASHBOARD ..

Accepted Solutions (0)

Answers (3)

Answers (3)

former_member553417
Participant

Try this code..add this code under press function in first app.Give your semantic object name and action of second app

if (sap.ushell && sap.ushell.Container && sap.ushell.Container.getService) {

var oCrossAppNavigator = sap.ushell.Container.getService("CrossApplicationNavigation");

oCrossAppNavigator.toExternal({ target: { semanticObject : "SEMANTIC OBJECT NAME", action: "display" }, //the app you're navigating to

});

} else

{ var text = "Cannot Navigate - Application Running Standalone"; jQuery.sap.log.info(text); othis.error(text); }

former_member186852
Contributor
0 Kudos

Hi Vinothkumar,

Kindly try to run the application on Fiori Launchpad. If you run the application in standalone mode it will not work.

Regards,

Meghal Shah

former_member187227
Participant
0 Kudos

Hi meghal.shah Thanks for your respone .

Please find attach above image . I running this app in fiori launchpad only...but still it not working..!!!

junwu
Active Contributor
0 Kudos

that's the fake one.

former_member187227
Participant
0 Kudos

Hi drushya.sudhi Thanks for your response 🙂

i try your code , But when i click Next app button it has no response .

what im doing wrong ?

former_member553417
Participant
0 Kudos

Declare it inside function

var othis = this;

but it is not going inside first if condition.keep break point and check what you are getting

former_member553417
Participant
0 Kudos

pay : function(){

var othis = this;

if (sap.ushell && sap.ushell.Container && sap.ushell.Container.getService) {

var oCrossAppNavigator = sap.ushell.Container.getService("CrossApplicationNavigation");

oCrossAppNavigator.toExternal({ target: { semanticObject : "SEMANTIC OBJECT NAME", action: "display" },

});

} else

{ var text = "Cannot Navigate - Application Running Standalone"; jQuery.sap.log.info(text); othis.error(text); }

}

try to run application in fiori launchpad

former_member187227
Participant
0 Kudos

Hii drushya.sudhi

Still I get a error like "othis.error" is not a function .

At the same time i choose another choice , when i remove else statement there is no any response from pay function.

i think the problem is occur in if statement .

former_member187227
Participant
0 Kudos

Hii drushya.sudhi

I Run this app in fiori launchpad only.. but still it not navigate to next app !!

Still I get a error like "othis.error" is not a function .

At the same time i choose another choice , when i remove else statement there is no any response from pay function.

i think the problem is occur in if statement .