Is it possible to call another function on success of OModel create success? I am trying like below code in a view1.controller.js
oModel.create('/EntitySet', requestBody, { success: function(oData, oResponse) { sap.m.MessageToast.show("Success"); this.mynewfunction(); }, error: function(oError) { sap.m.MessageToast.show(" error"); }
mynewfunction: function() { alert("function triggered") }
The success toast appears , but facing this.mynewfunction is not a function error.