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
}
Updated on: 2020-02-17T12:34:32+05:30

548 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements