Normally I'd agree, but my problem is the sourceCollection is being set via a binding long before it gets populated, and an ArrayCollection doesn't like it when you change .source behind its back. I also don't know if there's any conditions where the implementation of ArrayCollection will replace its own .source with a new Array instance, which would definitely kill the connection to any other ArrayCollection instances.
-J On Mon, Jun 2, 2008 at 9:59 AM, Richard Rodseth <[EMAIL PROTECTED]> wrote: > Array collection has a publicly-accessible source Array property and > filterFunction property. > > I'm actually building array collections on the fly in a model class > getter with a custom binding event. Same source, different filter > function. Seems to be working for me. > > Does that help? > > > On Sun, Jun 1, 2008 at 4:46 PM, Josh McDonald <[EMAIL > PROTECTED]<dznuts%40gmail.com>> > wrote: > > Hey guys, > > > > I think maybe I've missed the point of something, or there's a class I > need > > to use that I don't know exists :) > > > > I have an ArrayCollection we'll call sourceCollection. I need to have a > > couple of different views of this data, with which I can use > filterFunctions > > without affecting each other or the sourceCollection, and I need these > views > > to be updated when the source changes. Perfectly happy for these views to > be > > read-only. > > > > Is there already something that suits my needs? Or do I need to roll my > own? > > No problem, but it seems like a common task and I don't want to > re-implement > > something that already exists and works :) > > > > At first glance I thought the solution would be new > > ArrayCollection(sourceCollection.source), but it won't get updates. If it > > doesn't exist I'd rather build something reusable than just hack together > a > > solution by listening to the sourceCollection object. > > > > -J > > > > -- > > "Therefore, send not to know For whom the bell tolls. It tolls for thee." > > > > :: Josh 'G-Funk' McDonald > > :: 0437 221 380 :: [EMAIL PROTECTED] <josh%40gfunk007.com> > > > > > > -- "Therefore, send not to know For whom the bell tolls. It tolls for thee." :: Josh 'G-Funk' McDonald :: 0437 221 380 :: [EMAIL PROTECTED]

