When you apply filter, only ac get's filtered, ac.source will still be the
same. Looks like you are passing ac.source to your backend?

You may give this a try:
            yourAC.filterFunction = yourFilterFunction;
            yourAC.refresh();

            var filteredArray:Array = ObjectUtil.copy(yourAC.toArray()) as
Array;


On Thu, Nov 14, 2013 at 9:47 AM, Paul Hastings <[email protected]>wrote:

> not sure if this is an issue or just me not understanding.
>
> when i filter an ArrayCollection (ac), i see its length change to the
> expected size based on the filter condition but if i send that filtered ac
> to my backend (coldfusion) for reporting the whole, unfiltered ac is passed
> back. i guess its passing back the ac array source rather than ac wrapper?
>
> i've already worked around it but curious if this is expected/designed?
> and is my workaround "ok" (loop over filtered ac & add items to new array
> to pass to backend)?
>
> thanks.
>
>

Reply via email to