As per: https://sapui5.hana.ondemand.com/#docs/api/symbols/sap.ui.model.odata.v2.ODataModel.html#create
try something like this:
oModel.create("/EntitySet", data ,{ success: function(oData, response){ //oData - contains the data of the newly created entry
//response - parameter contains information about the response of the request (this may be your message) }, error: function(oError){ //oError - contains additional error information. } });
Hello,
I agree with Radeg answer, You have to use a basic call to understand what's going on. You can also check this :
oModel.create("/EntitySet", oEntry, { success : function(oData, oResponse) { // Success sap.m.MessageToast.show(" Created Successfully" ); } error : function(oError) { // Error sap.m.MessageToast.show(" Creation failed" ); } });
Add comment