SAP/ui5-typescript

ShellUIService: setBackNavigation implementation never called

Pascal-SV opened this issue · 1 comments

Hi,

I would like to implement the central back button functionality on the Fiori Shell. For this purpose, I followed the documentation and added

"services": { "ShellUIService": { "factoryName": "sap.ushell.ui5service.ShellUIService" } },

to the manifest. In the onInit function of my controller I am calling

this.getOwnerComponent().getService('ShellUIService').then( (oShellService) => { oShellService.setBackNavigation(function () { // call our generic cancel function this.proceedCancellation(); }); }, );

Unfortunately, the function passed to setBackNavigation is never called when navigating back using the button.

Expected behavior
My code is being called when central back button is pressed.

Additional context
SAPUI5 version 1.108.7