Skip to Content
0
Former Member
Apr 07, 2015 at 08:39 PM

model.update - call to entitySet and entity after success

433 Views

Hello

I am carrying out a call to update some data in the back end from user input modifying data in a simple form.

I use the following code:

oModel.update(sEntityPath, mPayload, {

success : function(mResponse) {

//some code

},

error : function(oError) {

//some code

}

});

Everything works as expected and I get the data that has been modified in the backend method XXXXX_UPDATE_ENTITY.

However after the response is returned (204 No Content) and the success function is called I notice that there are 2 more requests back to the server.

There is a request to the entitySet and then a request to the entity.

I don't think this is anything to do with my code, I think it is part of UI5.

Does anyone have an idea on why this is done, also how can I stop it?

Thanks

Andrew