class sap.ui.model.odata.Filter

Control sample: sap.ui.model.odata.Filter
Visiblity: public
UX Guidelines:
Implements:
Available since: N/A
Module: sap/ui/model/odata/Filter
Application Component: CA-UI5-COR

Filter for the list binding


Constructor

Constructor for Filter

new sap.ui.model.odata.Filter(sPath, aValues, bAND?)
Param Type Default Value Description
sPath string

the binding path for this filter

aValues object[]

Array of FilterOperators and their values: [{operator:"GE",value1:"val1"},{operator:"LE",value1:"val1"},{operator:"BT",value1:"val1",value2:"val2"}]

bAND? boolean true

If true the values from aValues will be ANDed; otherwise ORed


Methods Overview

Method Description
convert

Converts the sap.ui.model.odata.Filter into a sap.ui.model.Filter.

sap.ui.model.odata.Filter.extend

Creates a new subclass of class sap.ui.model.odata.Filter with name sClassName and enriches it with the information contained in oClassInfo.

oClassInfo might contain the same kind of information as described in sap.ui.base.Object.extend.

sap.ui.model.odata.Filter.getMetadata

Returns a metadata object for class sap.ui.model.odata.Filter.

convert

Converts the sap.ui.model.odata.Filter into a sap.ui.model.Filter.

sap.ui.model.odata.Filter.extend

Creates a new subclass of class sap.ui.model.odata.Filter with name sClassName and enriches it with the information contained in oClassInfo.

oClassInfo might contain the same kind of information as described in sap.ui.base.Object.extend.

Param Type DefaultValue Description
sClassName string

Name of the class being created

oClassInfo object

Object literal with information about the class

FNMetaImpl function

Constructor function for the metadata object; if not given, it defaults to the metadata implementation used by this class

sap.ui.model.odata.Filter.getMetadata

Returns a metadata object for class sap.ui.model.odata.Filter.