Mark
Check into the filterFunction property of the ArrayCollection class.
This is how I use it in one section of my code...
filterText = "text I want to filter on";
detailsArrColl.filterFunction = processFilter;
public function processFilter(item:Object):Boolean
{
if (item.name.toUpperCase().indexOf(filterText.toUpperCase()) >= 0)
{
return true;
}
return false;
}
HTH
Steve
--- In [email protected], "Mark" <mark.pusat...@...> wrote:
>
> Thanks for the link Ivan...
>
> Although that's very cool stuff I don't believe that's what I'm
looking for in this case. I'm really just looking to filter an
ArrayCollection that goes beyond one level. I'm having a hard time with
this so I'm even wondering if I can do it with an ArrayCollection or if
I need to use something like XMLListCollection.
>
> Mark
>
>
>
> --- In [email protected], Ivan Perez manoperez@ wrote:
> >
> > have you ever seen OLAP Cube for flex 3?
> >
http://livedocs.adobe.com/flex/3/html/help.html?content=olapdatagrid_6.h\
tml
> >
> > Maybe it works.
> >
> >
> > On Mon, May 18, 2009 at 12:02 PM, Mark mark.pusateri@ wrote:
> >
> > >
> > >
> > > Is there a way to filter an ArrayCollection of hierarchical data?
So if I
> > > have a structure as I layed out below where I have a number of
projects in
> > > my ArrayCollection, how can I filter on delCreationDate within
> > > deliverables/deliverable (there could be multiple deliverables)?
I've
> > > looked around and can't find much on this. If I can't filter an
> > > ArrayCollection in this way, is there another collection I can use
that will
> > > allow me to do this? Thanks
> > >
> > > <projects>
> > > <project>
> > > <pKey>120</pKey>
> > > <projectName>Deployment/pilot</projectName>
> > > <startDate>07/01/2008</startDate>
> > > <endDate></endDate>
> > > <actualCompleationDate></actualCompleationDate>
> > > <isOngoing>1</isOngoing>
> > > <creationDate>3/31/2009</creationDate>
> > > contactEmail></contactEmail>
> > > <description></description>
> > > <notes></notes>
> > > <actionSteps></actionSteps>
> > > <SOW></SOW>
> > > <extraProject>False</extraProject>
> > > <code>14129911</code>
> > > <engagementName>ICL Comms Internal Comms</engagementName>
> > > <audienceTitle></audienceTitle>
> > > <orderID>1</orderID>
> > > <priorityTitle></priorityTitle>
> > > <statusTitle>Open</statusTitle>
> > > <categoryTitle>Active</categoryTitle>
> > > <pmName>Jay Lindell</pmName>
> > > <leadName>Jay Lindell</leadName>
> > > <deliverables>
> > > <deliverable>
> > > <deliverableTitle>AITIC: Communication</deliverableTitle>
> > > <estimatedHours>1</estimatedHours>
> > > <actualHours>1.5</actualHours>
> > > <startDate>03/30/2009</startDate>
> > > <endDate>04/02/2009</endDate>
> > > <actualCompleationDate>04/02/2009</actualCompleationDate>
> > > <delCreationDate>4/3/2009</delCreationDate>
> > > <statusTitle>Complete</statusTitle>
> > > <comptencies>
> > > <competency>
> > > <pKey>144</pKey>
> > > <startDate>03/30/2009</startDate>
> > > <endDate>04/02/2009</endDate>
> > >
<actualCompleationDate>04/02/2009</actualCompleationDate>
> > > <estimatedHours>1</estimatedHours>
> > > <actualHours>1.5</actualHours>
> > > <comCreationDate>4/3/2009</comCreationDate>
> > > <resourceName>Mark Pusateri</resourceName>
> > > <competencyTitle>Writer</competencyTitle>
> > > <statusTitle>Complete</statusTitle>
> > > </competency>
> > > </comptencies>
> > > </deliverable>
> > > </deliverables>
> > > </project>
> > > </projects>
> > >
> > >
> > >
> > >
> >
> >
> >
> > --
> > Ivan Perez - Desenvolvimento Tecnológico
> > TecSinapse - www.tecsinapse.com.br
> > 11 9324-0097 / 19 8812-0809
> >
>