Skip to Content

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

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)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Apr 10 at 06:54 AM

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

    Add comment
    10|10000 characters needed characters exceeded

  • Apr 10 at 07:17 AM

    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 ?

    Add comment
    10|10000 characters needed characters exceeded

    • 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)
  • Apr 10 at 07:50 AM

    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

    Add comment
    10|10000 characters needed characters exceeded