Skip to Content
0

How to back Fiori launchpad from custom application

Jan 25 at 08:47 PM

175

avatar image

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!

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

2 Answers

Jun Wu Jan 26 at 01:38 AM
0

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

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

i'm getting error as undefined ..

0
Efim Parshin Jan 26 at 07:04 AM
0

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')
Share
10 |10000 characters needed characters left characters exceeded