Looks like we might have stumbled across a viable solution.
Basically, we have a dataProvider ArrayCollection, then bindable
ArrayCollections in the views. We set the source property of the
bindable ArrayCollection to the original dataProvider, then apply the
filters to the bound collection.
Sorry to dredge up an old thread, but I'm having a similar problem
that can't be helped by the links provided.
In our system, we have a shared list collection that is filtered in
different ways for different views, but no button to enact the filter.
For example, we have a list of users that
iirc what I usually do is store my master list data (the one in my
model) in an appropriate collection (more on this later). I then create
a second ArrayCollection in each view that needs to filter and set the
source of that one to the model collection (property that exposes an
Array). I
Also something I do (and recommend), although I use ListCollectionView
rather than ArrayCollection, as you don't need the (admittedly small)
overhead of the internal ArrayList.
-Josh
On Wed, Oct 1, 2008 at 7:51 AM, Scott Melby [EMAIL PROTECTED] wrote:
iirc what I usually do is store my master
I need to show two lists with different filter function on the same
dataprovider. Therefore I have to make a deep copy of the array for
the second list, otherwise the second filter will not include the
items filtered by the first filter - is'nt it?
--- In flexcoders@yahoogroups.com, Paul
You don't have to do a deep copy.
Use ListCollectionView instead, which allows you to apply different
filters to the same underlying Collection.
Cheers
Ralf.
On Tue, Jul 1, 2008 at 11:58 AM, linko27 [EMAIL PROTECTED] wrote:
I need to show two lists with different filter function on the same
- Original Message -
From: linko27 [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Tuesday, July 01, 2008 10:58 AM
Subject: [flexcoders] Re: Hide a list item without changing (filtering) the
dataprovider?
I need to show two lists with different filter function on the same
: [flexcoders] Re: Hide a list item without changing
(filtering) the
dataprovider?
I need to show two lists with different filter function on the same
dataprovider. Therefore I have to make a deep copy of the array for
the second list, otherwise the second filter will not include
8 matches
Mail list logo