depends on your architecture and what feels best in your project. Problem
with filtering an ArrayCollection directly in the model is that any views
bound to that model will also be filtered. Usually I have a large dataset in
an ArrayCollection in the model, and have a view that might have a search
box that filters items in a list. I create a new ArrayCollection in that
view, set the arrayCollection.source =
modelLocator.dataArrayCollection.source, and then apply a filterFunction to
the local arrayCollection specific to that view. That way each view has ways
of filtering its own local ArrayCollection wrapper around the same data set
in the model.

But to each their own. Depends on how shared the data is and how you like to
keep things divided

On Mon, Apr 14, 2008 at 1:49 PM, hworke <[EMAIL PROTECTED]> wrote:

>
>
> Hi I am using Cairngorm and in my ModelLocator I do
> have an array. I want to filter that array with a
> filter function. My question is where do I put this
> filter function: in a separate file or in the
> ModelLocator class?
>
>  
>

Reply via email to