cancel
Showing results for 
Search instead for 
Did you mean: 

SAPUI5 - Navigate back to Fiori launchpad from custom application

istvanherman
Explorer
0 Kudos

Hello,

I am stucked with a problem. I am developing a custom UI5 application what is deployed to a Fiori Launchpad - the launchpad is running on a gateway system so this is not a cloud solution.

I have a requirement that say user neeed 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 bacuse it is not working properly in every case.

Do you know any other solution?

Thank you very much!

Accepted Solutions (0)

Answers (3)

Answers (3)

junwu
Active Contributor
0 Kudos

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

istvanherman
Explorer
0 Kudos

Something is very strange here.

sap.ui.getCore().byId("homeBtn") is also undefined. I do not know what is going on...

istvanherman
Explorer
0 Kudos

Can I somehow trigger the launchpad homeBtn's event from my controller?

junwu
Active Contributor
0 Kudos

how you integrate your app to flp? is it component based?

istvanherman
Explorer
0 Kudos

Yes, it is component based and I am using semantic object to navigate into the application.

The URL when application is running like: https://server/sap/bc/ui5_ui5/ui2/ushell/shells/abap/FioriLaunchpad.html?sap-client=100&sap-language...

And I would like to go back to FLP: https://server/sap/bc/ui5_ui5/ui2/ushell/shells/abap/FioriLaunchpad.html?sap-client=100&sap-language...

Thank you!

junwu
Active Contributor
0 Kudos

sap.ushell is undefined? are u sure?

istvanherman
Explorer
0 Kudos

Yes, I am sure. I see there is the ushell in the URL so I do not understand why it is undefined.