Hello, I think we found a bug in the GetPredicate method of the SfQueryBuilder Blazor component. It happens when the rule is a NOT IN operator.
Code example: se next message.
When the button is clicked, query builder rules are set to "year not in (2019, 2020)". Then the rules are converted to a WhereFilter object through GetPredicate method and the WhereFilter object is printed to console.
What we expect is something like that (some properties omitted):
{
"isComplex": true,
"condition": "and",
"predicates": [
{
"field": "Year",
"operator": "notequal",
"value": 2019.0,
},
{
"field": "Year",
"operator": "notequal",
"value": 2020.0,
}
]
}
Instead, we get this:
{
"field": "Year",
"ignoreCase": true,
"ignoreAccent": false,
"isComplex": false,
"operator": "notequal",
"condition": null,
"value": 2019.0,
"predicates": null
}
It seems that SfQueryBuilder.GetPredicate does not manage well NOT IN conditions: it always return a simple filter with only the first value, instead of a complex condition with every value.