Namespace sap.ui.model.odata.OperationModeModule: sap/ui/model/odata/OperationMode
Different modes for executing service operations (filtering, sorting)
There are two possibilities which can happen, when using the "Auto" mode, depending on the configured "CountMode": 1. CountMode "Request" and "Both" Initially the binding will issue a $count request without any filters/sorters. a) If the count is lower or equal to the threshold, the binding will behave like in operation mode "Client", and a data request for all entries is issued. b) If the count exceeds the threshold, the binding will behave like in operation mode "Server".
2. CountModes "Inline" or "InlineRepeat" The initial request tries to fetch as many entries as the configured threshold, without any filters/sorters. In addition a $inlinecount is added. The binding assumes, that the threshold given by the application can be met. If this is not the case additional data requests might be needed. So the application has to have the necessary confidence that the threshold is high enough to make sure, that the data is not requested twice.
a) If this request returns fewer (or just as many) entries as the threshold, the binding will behave exactly like when using the "Client" operation mode. Initially configured filters/sorters will be applied afterwards on the client. b) If the $inlinecount is higher than the threshold, the binding will behave like in operation mode "Server". In this case a new data request containing the initially set filters/sorters will be issued.