Not able to call another function within initialize method of controller in SAP UI5.



Yes, you are absolutely correct. It is very basic thing, you just need to use this operator for making the function call.

onInit: function() {
   //Your logic
   this.CustomFunction();
}
CustomFunction : function () {
  // some logic
}
Anil SAP Gupta
Anil SAP Gupta

SAP Expert


Advertisements