Hi,

I've been trying to filter an ArrayCollection with the objects that not
exist in another ArrayCollection. I use the "contains" method, but it seems
that does not work.
In the following thread seems that others are having the same problem with
XMLListCollectionView:

http://www.mail-archive.com/flexcoders@yahoogroups.com/msg55025.html

Someone knows if contains method really works? maybe we are using in a wrong
way?

Here is my filter:

private function myFilter(item:Object):Boolean {
               if(model.myac.contains(item))
                   return false;
               else
                   return true;
           }

And I use the following implementation of ICollectionView

<mx:ListCollectionView
       id="mylcv"
       list="{model.myac2}"
       filterFunction="myFilter"/>

Something wrong here?

Thanks.




--
::| Carlos Rovira
::| http://www.carlosrovira.com
::| http://www.madeinflex.com

Reply via email to