cancel
Showing results for 
Search instead for 
Did you mean: 

odata v4 Model SubmitBatch - callback response params

Hi Community,

I'm trying to implement CRUD operations with the OData v4 model as suggested in the ui5 demo kit.

when I try to use SubmitBatch API, although I get a successful result, the function won't have any response parameters. (in the below example oData and oResponse)

How do I get the response from the API request. Can someone please suggest.

//manifest
"": {
	"dataSource": "default",
	"settings": {
	        "autoExpandSelect": true,
	        "operationMode": "Server",
		"groupId": "$auto",
		"synchronizationMode": "None"
	}
    }

//controller 
onSave : function () {
	var fnSuccess = function (oData, oResponse) {
		//oData and oResponse is undefined	
        }.bind(this);
        var fnError = function (oError) {
				
        }.bind(this);

	this.getView().getModel().submitBatch("peopleGroup").then(fnSuccess, fnError);
			
},

 

Accepted Solutions (0)

Answers (1)

Answers (1)

Did you solved it? I have a same problem