on 2019 Mar 28 12:29 PM
Hi,
I'm trying to extend(extend with a copy of original code) the standard S/4 Hana Fiori application controller.
As the standard extension hook methods provided were not inline with my requirement, I need to write custom functions.
My Goal is to incorporate custom code within standard code and make both work smoothly.
However, when i extended(extend with a copy of original code) the standard controller, i observed that the code is in below format
sap.ui.define([ "
jquery.sap.global",
.......
"sap/m/MessageBox", "sap/m/MessageToast" ],
function (q, g, N) {
"use strict"; var m = sap.ui.controller("abc.efg.hjk.efgaaa", {
// Here onInit, onAfterRendering, onBeforeRendering and onExit hook methods were commented
// Step1:- I tried writing my custom functions here but not working eg
// omyButtonPress: function(){
//Error while rendering the app
//}
});
m.prototype.StandardFunctions = function () {
}, this); };
Step2:- I also tried m.prototype.omyButtonPress = function(){
//Error while rendering the app
}
Any advice is deeply appriciated.
Regards,
S. Natarajan
User | Count |
---|---|
67 | |
10 | |
10 | |
10 | |
10 | |
8 | |
8 | |
7 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.