on 2023 Aug 31 7:42 PM
Hi Team -
We have a requirement to bring up a message box while changing order status in F2173 - Find Maintenance Order and Operation. We have created an adaptation project to create a controller extension to try to achieve this requirement.
The lifecycle events are been overridden and being invoked in extension controller, However the basePublicMethodis not being called/invoked.
sap.ui.define(['sap/ui/core/mvc/ControllerExtension', 'sap/ui/core/mvc/OverrideExecution'], function(ControllerExtension, OverrideExecution) {
"use strict";
return ControllerExtension.extend("customer.app.variant1.CloseConfirmationController", {
metadata: {
methods: {
onInit: {
public: true /*default*/ ,
final: false /*default*/ ,
overrideExecution: OverrideExecution.Before
},
onCompleteTechnicalPressed: {
public: true /*default*/ ,
final: false /*default*/ ,
overrideExecution: OverrideExecution.Before
},
}
},
override: {
onInit: function() {
alert("oninit -> This runs")
},
onCompleteTechnicalPressed: function() {
alert("onCompleteTechnicalPressed -> This doesn't run")
}
}
});
});<br>
Request clarification before answering.
User | Count |
---|---|
73 | |
21 | |
9 | |
8 | |
7 | |
6 | |
5 | |
4 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.