Skip to Content
0
Jul 24 at 07:40 PM

Implement eTag in oModel.submitChanges()

97 Views

Hi,

How do I implement ETags in UI5 application. In the app, I am submitting the changes to backend using oModel.submitChanges() and this ETag error(status code 412) is coming in success handler of submitChanges method. So, I want to provide a dialog when this error comes and cancel submitting my changes to backend. How do I accomplish it.

I have tried below thread but it didn't help me.

https://blogs.sap.com/2017/06/30/optimistic-locking-etag-in-sapui5/