Skip to Content
0

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

Apr 10 at 05:22 AM

231

avatar image

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 ..

untitled.png (64.7 kB)
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

3 Answers

Drushya S Apr 10 at 06:54 AM
1

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); }

Share
10 |10000 characters needed characters left characters exceeded
Vinothkumar T Apr 10 at 07:17 AM
0

Hi Drushya S Thanks for your response :)

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

what im doing wrong ?


1.png (121.7 kB)
2.png (2.5 kB)
3.png (13.3 kB)
Show 4 Share
10 |10000 characters needed characters left characters exceeded

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

0

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

0

Hii Drushya S

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 .

untitled1.png (52.7 kB)
0

Hii Drushya S

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 .

0
MEGHAL SHAH Apr 10 at 07:50 AM
0

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

Show 2 Share
10 |10000 characters needed characters left characters exceeded

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..!!!

0
Vinothkumar T

that's the fake one.

0