I'm trying to add a new filterview option to an existing grid filter with six other options that currently work fine. What's different about option 7 is that it needs to use two "or" values to filter the grid with. All the others have only one. Here is the code I've tried (along with one of the working filterview options), but it returns nothing and doesn't even generate any SQL in the console window. There is data in the database for both values.
//this code works:
new FilterView("CashR")
{
Filters = new List<DataFilterValue>
{
new DataFilterValue
{
Field = nameof(InvoiceVM.InvoiceStatus),
Value = "CashR",
Operator = ExtendedFilterOperator.IsEqualTo
}
}
},
//this code doesn't work:
new FilterView("Select Checks")
{
Filters = new List<DataFilterValue>
{
new DataFilterValue
{
Field = nameof(InvoiceVM.InvoiceStatus),
Value = new string[] { "Verified", "Partial" },
Operator = ExtendedFilterOperator.IsInListEqualTo
}
}
}
//this code works:
new FilterView("CashR")
{
Filters = new List<DataFilterValue>
{
new DataFilterValue
{
Field = nameof(InvoiceVM.InvoiceStatus),
Value = "CashR",
Operator = ExtendedFilterOperator.IsEqualTo
}
}
},
//this code doesn't work:
new FilterView("Select Checks")
{
Filters = new List<DataFilterValue>
{
new DataFilterValue
{
Field = nameof(InvoiceVM.InvoiceStatus),
Value = new string[] { "Verified", "Partial" },
Operator = ExtendedFilterOperator.IsInListEqualTo
}
}
}