Skip to Content

Combined "and" and "or" filters throws error

I have the following code, and terminating it results in this error:

"Wrong parameters defined for filter. -"

Please help me find out why, because I don't see any mistakes.

untitled.jpg (110.3 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    Jul 31, 2017 at 02:18 PM

    This should work:

    var oFilter = new sap.ui.model.Filter({ filters: aFilters, and: false }); // OR filter

    you missed the name of the property...

    -Nabi

    Add comment
    10|10000 characters needed characters exceeded