FieldCompareValuePredicate

Posts   
 
    
zaad
User
Posts: 19
Joined: 13-Sep-2005
# Posted on: 27-Sep-2005 15:59:15   

Hello,

I'm building a 'search-order'-screen with a couple of search elements like OrderDate (DateEdit). I have bounded the DateEdit.EditValue to a FieldCompareValuePredicate's value property. This predicate is added to a general filter in the constructor of the screen. In this way the only thing I have to do when the 'search'-button is pressed is do a GetMulti() with the general filter as parameter. This works fine only if the value of the DateEdit != null. Is that correct behaviour? Or do I have to check if the value != null and exclude the predicate from the general filter? confused

Greetz,

zaad

Walaa avatar
Walaa
Support Team
Posts: 14995
Joined: 21-Aug-2005
# Posted on: 27-Sep-2005 16:11:28   

I think you should exclude the predicate from the filter if the value is null, unless you want to search for null values in the database, then you should use the "FieldCompareNullPredicate" instead of the "FieldCompareValuePredicate"