The sap.ui.model.odata.v4.ODataModel
is the model implementation for consuming an OData V4 service.
Instead of smart controls (
sap.ui.comp
library) orsap.ui.table.AnalyticalTable
(or analytical table scenarios) the SAP Fiori elements building blocks (sap.fe.macros
) have to be used with the OpenUI5 OData V4 model.The interface for applications has been changed for an easier and more efficient use of the model. For a summary of these changes, see Changes Compared to OData V2 Model.
The OData V4 model supports the following:
-
Read access
-
Updating properties of OData entities (in entity sets and contained entities) via two-way-binding
-
Deleting entities
-
Operation (function and action) invocation
-
Grouping data requests in a batch request
-
Server-side sorting and filtering
The OData V4 model documentation contains several code samples. These refer to the Sales Orders sample in the Demo Kit.
Related Information
Changes Compared to OData V2 Model