Hi SAPUI5 experts,
I have a requirement to add new entries in a table.I used sap.ui.model.odata.v2.ODataModel directly for binding.To add new entry, createEntry method in ODatamodel is used. But when i use this method and after setting the returned context to new item immediately backend Post request is triggered.
But i dont want this to happen.It should hold the data locally and when i click on save then only the entries should be submitted to the backend.I used changesetid, batchgroupid and deferreds .But nothing is working fine. sample code is pasted below
var oContext = oList.getModel().createEntry("/Entityset",{changeSetId:"myGroupId",properties:{ },success:function(){ alert("success"); },error:function(error){ alert("error"); }});
Please suggest me how to prevent backend odata call after calling createentry method.
UI5 version I am using is 1.28
Regards,
Venkat