good idea... i created a copy as follows:
tmplist = new XMLListCollection(resultlist.source);
tmplist.filterFunction = resultlist.filterFunction;
and after processing the tmplist, reset resultlist = tmplist
Thanks Alex!
________________________________
From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Alex Harui
Sent: Thursday, May 01, 2008 2:32 PM
To: [email protected]
Subject: RE: [flexcoders] Processing a filtered XMLListCollection as a
complete list
Try using a second XMLListCollection with the same source.
________________________________
From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Thind, Aman
Sent: Wednesday, April 30, 2008 10:03 PM
To: [email protected]
Subject: [flexcoders] Processing a filtered XMLListCollection as a
complete list
Hello,
I have an xmllistcollection bound to a datagrid that can be filtered by
the user.
When certain external events occur, I have to process this collection by
adding / deleting values from it.
However, when the user has the collection filtered, I can access only
the filtered list and not the whole.
For the whole list I started referring to the "source" property which is
an XMLList but I cannot figure out how to add elements to that as it
does not have the equivalent of addItemAt() like the original
collection.
Can anyone point me out to what is the best way of being able to process
a complete collection (add/delete/edit at a specified index) even when
some of its elements have been filtered out.
Many Thanks,
Aman
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - -
This message is intended only for the personal and confidential use of
the designated recipient(s) named above. If you are not the intended
recipient of this message you are hereby notified that any review,
dissemination, distribution or copying of this message is strictly
prohibited. This communication is for information purposes only and
should not be regarded as an offer to sell or as a solicitation of an
offer to buy any financial product, an official confirmation of any
transaction, or as an official statement of Lehman Brothers. Email
transmission cannot be guaranteed to be secure or error-free. Therefore,
we do not represent that this information is complete or accurate and it
should not be relied upon as such. All information is subject to change
without notice.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - -
This message is intended only for the personal and confidential use of the
designated recipient(s) named above. If you are not the intended recipient of
this message you are hereby notified that any review, dissemination,
distribution or copying of this message is strictly prohibited. This
communication is for information purposes only and should not be regarded as an
offer to sell or as a solicitation of an offer to buy any financial product, an
official confirmation of any transaction, or as an official statement of Lehman
Brothers. Email transmission cannot be guaranteed to be secure or error-free.
Therefore, we do not represent that this information is complete or accurate
and it should not be relied upon as such. All information is subject to change
without notice.