flex-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alex Harui <aha...@adobe.com>
Subject Re: filtered ArrayCollections
Date Thu, 14 Nov 2013 05:16:20 GMT


On 11/13/13 8:17 PM, "Paul Hastings" <paul.hastings@gmail.com> 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?
Yes, it serializes the source, not its current view.
>
>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)?
Seems ok.  You could also try subclassing and changing what
readExternal/writeExternal does.  Maybe some committer will add a flag and
build in the option.

-Alex


Mime
View raw message