openui5 icon indicating copy to clipboard operation
openui5 copied to clipboard

Feature request: does not contain filter operator

Open tesiawu opened this issue 9 years ago • 4 comments

Request for a "Does not Contain" filter operator.

There is a "not equal" filter ("NE":sap.ui.model.FilterOperator.NE) but there doesn't seem to be a does not contain.

Is it also possible to code a "does not contain" filter using the filters.push() function? I have tried with the custom test filter, but it did not work.

tesiawu avatar Aug 01 '17 17:08 tesiawu

hi why custom filters are not sufficient here? http://jsbin.com/nakihixaba/1/edit?js,output

aborjinik avatar Aug 02 '17 10:08 aborjinik

I tried the custom filters and it gives me the entire list back

I'm using OData, not a JSON model -- I've read on stackoverflow that the feature isn't supported with OData

https://stackoverflow.com/questions/34121035/openui5-write-a-filteroperator-not-contains

The author of one of the answering comments does suggest it is possible, but I'm not quite sure how

Thanks!

tesiawu avatar Aug 02 '17 13:08 tesiawu

yes this is a known gap at at ODataModel and I will inform product owner for this feature request. After discussion we will turn back to you.

aborjinik avatar Aug 02 '17 14:08 aborjinik

Since SAPUI5 1.58 there is sap.ui.model.FilterOperator.NotContains, see also sap.ui.model.FilterOperator.

Best regards Mathias.

uhlmannm avatar Mar 07 '22 16:03 uhlmannm