2024 Feb 01 8:08 AM - edited 2024 Feb 01 8:09 AM
Hello,
I have the requirement to override the navigation from a responsive table on an Object Page in an OData V4 app. I have followed the instructions here:
https://sapui5.hana.ondemand.com/sdk/#/topic/b20dc7a3d9ca41bebdb86fc3ae3295bf
My problem is that the onBeforeNavigation override method is never called, and it just proceeds with the default navigation settings.
I have overridden the onInit and onBeforeRendering methods in the same controller extension, and these work fine. Also in the same app, I have a List Report controller extension with the routing/onBeforeNavigation method overridden, and this works fine.
Are the instructions incorrect/incomplete for the Object Page table? Is there a trick here that I am missing?
ControllerExtension.extend("sap.fe.templates.ObjectPage.ObjectPageController", {
override: {
routing: {
onBeforeNavigation: function(oContextInfo) {
console.log(oContextInfo);
return true;
}
}
Request clarification before answering.
For intent based navigation, you need to override a different method:
override: {
intentBasedNavigation: {
adaptNavigationContext: function(oContextInfo) {
}
}
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
71 | |
21 | |
9 | |
7 | |
6 | |
6 | |
4 | |
4 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.