enum sap.ui.model.FilterOperator

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

Operators for the Filter.


Properties Overview

Node Description
sap.ui.model.FilterOperator.All

Used to filter a list based on filter criteria that are defined in a nested filter for dependent subitems. All returns a list of those items for which all dependent subitems match the filter criteria of the nested filter. For example, a list of customers can be filtered by filter criteria that are applied to the list of orders the customer placed in the past. The filter returns a list of those customers that always ordered a specific product.

This filter operator is only supported in OData V4 models.

sap.ui.model.FilterOperator.Any

Used to filter a list based on filter criteria that are defined in a nested filter for dependent subitems. Any returns a list of those items for which at least one dependent subitem matches the filter criteria of the nested filter. For example, a list of customers can be filtered by filter criteria that are applied to the list of orders the customer placed in the past. The filter returns a list of those customers that at least once ordered a specific product.

This filter operator is only supported in OData V4 models.

sap.ui.model.FilterOperator.BT

FilterOperator between

Used to filter all entries between the given boundaries. The filter result contains the boundaries, but no entries before or further. The order of the entries in the filter results is based on their occurrence in the input list.

Note, when used on strings: The String comparison is based on lexicographical ordering. Characters are ranked in their alphabetical order. Words with the same preceding substring are ordered based on their length e.g. "Chris" comes before "Christian".

The filtering includes the right boundary, but no strings further in the lexicographical ordering. e.g. between "A" and "C" includes the string "C", but not "Chris".

sap.ui.model.FilterOperator.Contains

FilterOperator contains

sap.ui.model.FilterOperator.EndsWith

FilterOperator ends with

sap.ui.model.FilterOperator.EQ

FilterOperator equals

sap.ui.model.FilterOperator.GE

FilterOperator greater or equals

sap.ui.model.FilterOperator.GT

FilterOperator greater than

sap.ui.model.FilterOperator.LE

FilterOperator less or equals

sap.ui.model.FilterOperator.LT

FilterOperator less than

sap.ui.model.FilterOperator.NB

FilterOperator "Not Between"

Used to filter all entries, which are not between the given boundaries. The filter result does not contains the boundaries, but only entries outside of the boundaries. The order of the entries in the filter results is based on their occurrence in the input list.

Note, when used on strings: The String comparison is based on lexicographical ordering. Characters are ranked in their alphabetical order. Words with the same preceding substring are ordered based on their length e.g. "Chris" comes before "Christian".

sap.ui.model.FilterOperator.NE

FilterOperator not equals

sap.ui.model.FilterOperator.NotContains

FilterOperator not contains

sap.ui.model.FilterOperator.NotEndsWith

FilterOperator not ends with

sap.ui.model.FilterOperator.NotStartsWith

FilterOperator not starts with

sap.ui.model.FilterOperator.StartsWith

FilterOperator starts with