I need help of filtering

Posts   
 
    
rakesh
User
Posts: 2
Joined: 05-Dec-2005
# Posted on: 05-Dec-2005 13:37:48   

Please can anybody tell me how can i use the the retrieved data when i perform a filter

IPredicateExpression filter = new PredicateExpression(); filter.Add(PredicateFactory.CompareValue(StatusFieldIndex.Statusname,ComparisonOperator.Equal,status)); StatusCollection statusc = new StatusCollection(); statusc.getMulti(filter);

can anybody tell me how can i use the statusc ... I have checked that this statusc holds the retrieved data. But i can not find a properway to use the data.

Walaa avatar
Walaa
Support Team
Posts: 14995
Joined: 21-Aug-2005
# Posted on: 05-Dec-2005 14:16:19   

Please can anybody tell me how can i use the the retrieved data when i perform a filter

I'm afraid I don't understand your question, but you can always use the retrieved data when you use a filter the same way you use it when you don't use a filter.

IPredicateExpression filter = new PredicateExpression(); filter.Add(PredicateFactory.CompareValue(StatusFieldIndex.Statusname,ComparisonOperator.Equal,status)); StatusCollection statusc = new StatusCollection(); statusc.getMulti(filter);

can anybody tell me how can i use the statusc ... I have checked that this statusc holds the retrieved data. But i can not find a properway to use the data.

How did you check that the returned collection contained data? And how do you want to use it? or what exactly do you want to do with it?

Note: statusc.getMulti(filter); will fill the statusc collection with StatusEntity items Then you may iterate within the collection (loop) to retrieve each item (StatusEntity)

rakesh
User
Posts: 2
Joined: 05-Dec-2005
# Posted on: 05-Dec-2005 15:19:24   

I got the solution...Thanks