Hi All,
I am looking for the solution or steps to do patch update to OData Service(OData V2) via SAPUI5 Application.
Currently i am using the below code to update the Data
var oData = {
ProductId: 999,
ProductName: "myProductUpdated"
}
oModel.update("/Products(999)", oData, {success: mySuccessHandler, error: myErrorHandler});
In the above example, i need to pass the entire payload for my entityset. Instead of passing the entire payload, i just need to send the key and updated fields.
How to do that in SAPUI5?
Thank you ,
Jayakrishnan.