Feature request: does not contain filter operator
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.
hi why custom filters are not sufficient here? http://jsbin.com/nakihixaba/1/edit?js,output
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!
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.
Since SAPUI5 1.58 there is sap.ui.model.FilterOperator.NotContains, see also sap.ui.model.FilterOperator.
Best regards Mathias.