on 2024 Jul 23 2:54 PM
Hello,
I'm trying to override the back button behavior on Sap Build Workzone. My application is Fiori Elements with Fiori Freestyle with odata v4. I want to raise an exception when a user is in the Object Page in edit mode and clicks on the back button. I tried the suggestions here https://community.sap.com/t5/technology-q-a/flp-nav-back-button-issue/qaq-p/12142325/comment-id/4538.... But didn't work for me. I tried using this part:
this.getOwnerComponent().getService("ShellUIService").then(function(oShellService) { oShellService.setBackNavigation(function() { //either do nothing to disable it, or add your own nav back logic for having the navigation }); });
In the onAterRendering method of the Object Page controller, but it doesn't enter the setBackNavigation function. Can someone help with this issue.
Thanks,
Violina
My attempts to capture the browser back event have never been completely successful in the past.
If you're using the standard draft-handling mechanism, then the user entries should be saved as draft and they can continue later when they enter the object page again. Not sure if that behaviour is acceptable for your use case.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
70 | |
8 | |
8 | |
7 | |
7 | |
6 | |
6 | |
6 | |
6 | |
6 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.