Hi,
I have a problem with different behavior of FilterDescriptor in Q1 2013 (upgraded from Q1 2012).
I want to filter out all rows where 2 columns have a value of string.Empty and set the filter like this:
CompositeFilterDescriptor cfd = new CompositeFilterDescriptor();
FilterDescriptor fd1 = new FilterDescriptor("Anlage", FilterOperator.IsNotEqualTo, "");
cfd.FilterDescriptors.Add(fd1);
FilterDescriptor fd2 = new FilterDescriptor("Bestellung", FilterOperator.IsNotEqualTo, "");
cfd.FilterDescriptors.Add(fd2);
cfd.LogicalOperator = FilterLogicalOperator.Or;
grid.FilterDescriptors.Add(cfd);
In Q1 2012 this resulted in:
CompositeGridFilter, Expression: (Anlage <> '' OR Bestellung <> '')
In Q1 2013 the expression now is:
(NOT (Anlage IS NULL) OR NOT (Bestellung IS NULL))
which is not what I want!
Is there any way around this?
Thanks a lot in advance
Renate
I have a problem with different behavior of FilterDescriptor in Q1 2013 (upgraded from Q1 2012).
I want to filter out all rows where 2 columns have a value of string.Empty and set the filter like this:
CompositeFilterDescriptor cfd = new CompositeFilterDescriptor();
FilterDescriptor fd1 = new FilterDescriptor("Anlage", FilterOperator.IsNotEqualTo, "");
cfd.FilterDescriptors.Add(fd1);
FilterDescriptor fd2 = new FilterDescriptor("Bestellung", FilterOperator.IsNotEqualTo, "");
cfd.FilterDescriptors.Add(fd2);
cfd.LogicalOperator = FilterLogicalOperator.Or;
grid.FilterDescriptors.Add(cfd);
In Q1 2012 this resulted in:
CompositeGridFilter, Expression: (Anlage <> '' OR Bestellung <> '')
In Q1 2013 the expression now is:
(NOT (Anlage IS NULL) OR NOT (Bestellung IS NULL))
which is not what I want!
Is there any way around this?
Thanks a lot in advance
Renate