on 08-10-2015 12:05 PM
Hi, I have a gateway WebService which has multiple EntitySets (let's say 10 of them) and was wondering if it is possible to post all the data for all entitisets in one batch operation like below:
var batchChanges = [];
batchChanges.push(oModel.createBatchOperation("/MainDetailsCollection", "POST", oMainDetails));
batchChanges.push(oModel.createBatchOperation("/OrgLocationCollection", "POST", oOrgLocationDetails));
oModel.addBatchChangeOperations(batchChanges);
oModel.submitBatch(function(data){
oModel.refresh();
console.log("success?: " + data);
},function(err){
alert("error occurred: " + err);
});
So far the moment I try to push a different entityset i immediately get CX_SXML_PARSE_ERROR. So is the batchChanges only ment for posting multiple lines of a SINGLE entity set?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.