Skip to Content

How to back Fiori launchpad from custom application

Hello,

I am stucked with a problem. I am developing a custom UI5 application what is deployed to a Fiori Launchpad.

I have a requirement that say user need a Quit button in the application. I know there is a Home button to navigate back to Launchpad but the customer insist to his idea that we need a separated Quit button.

I have found CrossApplicationNavigation solution but it is not working for me because sap.ushell is undefined.

history.goback(-1) is not option in our case because it is not working properly in every case.

Do you know any other solution?

Thank you very much!

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Jan 26 at 01:38 AM

    sap.ui.getCore().byId("homeBtn").onclick()

    Add comment
    10|10000 characters needed characters exceeded

  • Jan 26 at 07:04 AM

    Hi! It's strange, that sap.ushell is udefiened. Are you sure that your app is inside FLP container?

    You can try rough solution with hasher:

    window.hasher.setHash('Shell-home')
    Add comment
    10|10000 characters needed characters exceeded