The simplest solution as I see it: create another collection.

R.

On 6/5/07, Ariel Jakobovits <[EMAIL PROTECTED]> wrote:
> I have a global variable called categories. It is an XMLListCollection 
> populated when a user logs in, representing the categories they have created.
>
> I use the categories collection as a dataprovider in various controls.
>
> I also have a global variable called selectedItem. An item, among other 
> attributes, has a list of assigned categories.
>
> What I am approaching is a view with two lists. One list contains the 
> categories that have been assigned to the selected item. Easy: dataprovider = 
> selectedItem.categories.
> The other list needs to contain the categories that have not been assigned to 
> that item yet. The basis for the data is the global categories collection, 
> but since the filterFunction is applied to the dataprovider and not the 
> control itself, the filter function will affect all controls using the 
> categories collection.
>
> What do I do?
>
>
>
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
> Yahoo! Groups Links
>
>
>
>

Reply via email to