a month ago
I am trying to attach a callback to the Logout event from the SAP Build Work Zone in my SAPUI5 application, to then request a logout in my approuter application. This is the logic I added to enable the event:
// UI5 Component
export default class Component extends UIComponent {
//...
public init(): void {
//...
// Log out when the user clicks the logout button in the shell header (BWZ)
Container.attachLogoutEvent(() => {
console.log("Logout event triggered, redirecting to logout endpoint.");
window.location.replace('/do/logout');
}, false)
}
}
The callback is working on my local tests, and I can see the log message on the console. However, when I try to do same thing inside our SAP Build Work Zone subscription, the callback doesn't run and we see a error message:
After investigating the source files I notices this error happens when the Logout Event is being created and a deprecated part of the code executes. I wasn't able to find any configurations on SAP Build Work Zone that would fix it, but I might have missed something?
Has anyone else seen this error before? How can I contact the SAP Build Work Zone team to get support?
Thanks
Request clarification before answering.
User | Count |
---|---|
31 | |
15 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.