SAP UI5 table control based on OData V4, the sending principle of Patch request

According to the code introduced in this article , develop an application that includes the SAP UI5 table control based on OData V4. All table row items are sap.m.Inputdeveloped with and are in editable state.

Suppose we change Age from 23 to 24, press Enter:

This carriage return generates an keydownevent :InputBase.prototype.onsapenter

this.oContext.doSetPropertyEventually a batch request will be triggered:

The xhr here is already Fake XMLHttpRequest after being patched by sinon Mock Server:

Guess you like

Origin blog.csdn.net/i042416/article/details/123943662