Skip to Content
0

OData V2 Model batch call with get and update call in same batch

Feb 07, 2017 at 08:04 AM

46

avatar image
Former Member

Hi,

I have tried calling OData V2 Model batch call with get and /update call in same batch. But it is not working.

var oModel = new sap.ui.model.odata.v2.ODataModel(serviceURL,true);

oModel.setUseBatch(true);

oModel.read(sPath, {groupId: "myId"});

oModel.update(sPathUpdate, poEntry, {groupId: "myId", changeSetId: "applyChange"});

oModel.submitChanges({ groupId: "myId", success: function (oData) { } });

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

0 Answers