cancel
Showing results for 
Search instead for 
Did you mean: 

Sapui5 how can refresh batch requests before submit changes

former_member489109
Participant
0 Kudos
var oModel = this.getView().getModel();
oModel.setDeferredGroups(["maraGroupId"]);
oModel.setUseBatch(true);


var mParameters = {
"groupId": "maraGroupId",
"changeSetId": "maraChangeSetId"
};

var oEntry = {};
oEntry.Matnr = "1";
oModel.create("/MaraSet", oEntry, mParameters);

oEntry.Matnr = "2";
oModel.create("/MaraSet", oEntry, mParameters);

oEntry.Matnr = "3";
oModel.create("/MaraSet", oEntry, mParameters);

oModel.submitChanges(mParameters);

junwu
Active Contributor
0 Kudos

check the data before calling create

junwu
Active Contributor
0 Kudos

one loop to check data, if it goes well, then another loop to call create

junwu
Active Contributor
0 Kudos

low performance?? how low it will be? don't just imagine.......

Accepted Solutions (0)

Answers (0)