enum sap.ui.model.odata.CountMode

Visiblity: public
Available since: N/A
Module: sap/ui/model/odata/CountMode
Application Component: CA-UI5-COR

Different modes for retrieving the count of collections.



References:


Properties Overview

Node Description
sap.ui.model.odata.CountMode.Both

Count is retrieved by a separate request upfront and inline with each data request.

The only purpose of this mode is to reflect the behavior of the ODataModel (v1) before the introduction of the CountMode. For compatibility reasons, it is the default for the ODataModel (v1) and shouldn't be used otherwise.
Deprecated as of version 1.43. this shouldn't be used any longer, decide for one of the other modes.

sap.ui.model.odata.CountMode.Inline

Count is retrieved by adding $inlinecount=allpages to data requests as long as no count has been determined yet.

sap.ui.model.odata.CountMode.InlineRepeat

Count is retrieved by adding $inlinecount=allpages to every data request.

sap.ui.model.odata.CountMode.None

Count is not requested from the server.

sap.ui.model.odata.CountMode.Request

Count is retrieved by sending a separate $count request before requesting data.

It depends on the concrete model implementation whether and how the $count request and the data request are synchronized.