I am not able to call any custom function inside the oData post success call.
onSubmit: function () {
var that = this; that.onInit();
}
oModel.create("/Entity", postData, {
success: function (oRetrievedResult) {
var that=this;
lv_BusyDialog.close();
var msg = 'Success!';
MessageToast.show(msg);
that.onSubmit();
// This onSubmit is getting not called here.
},
error: function (oError) {
/* do something */
lv_BusyDialog.close();
var msg1 = 'error';
MessageToast.show(msg1);
}