on 02-07-2017 8:04 AM
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) { } });
if you are trying to get the record first and then update the same.. you should try an async JS call... and GET the record first... and on your successcall back run the update operation... i think that is what you need to do to achieve your desired output
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hey,
Did you get any solution for your issue? I have also faced this kind of scenario, but searching for the help.
Thanks.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.