FYI:
if an ArrayCollection is managed by a DataService, then the list property of the
ArrayCollection is of type mx.data.DataList. This DataList holds a
localItems Array which seems to track the references to the items available in
this list. As the items are [Managed] (implement mx.data.DataService) they
all have an uid property which is a String representation of the ID I need.
So it
really seems as if it's enough to drill down to the localItems Array and look
for the UID in question.
Dirk.
Hi
Jimmy,
I
don't think there's a getItem() method on ArrayCollection. There's only
getItemAt() but that's useless as I don't have the index of the item.
Actually, all I know about the item is the unique ID (i.e. the PK from
the DB table) so what I need is something like
myArrayCollection.getItemByUID(uid);
where uid is an Object containing the unique ID, e.g.
var uid:Object = {organization_id:
123};
Makes sense?
So
far I have found no way to query a
DataStore/Arraycollection/DataList/whatever for an item by passing
in the unique ID withouth going to FDMS if the item is already living on the
client.
Dirk.
|
AVIS
IMPORTANT
|
WARNING
|
|
Ce message électronique et ses pièces jointes peuvent contenir des renseignements confidentiels, exclusifs ou légalement privilégiés destinés au seul usage du destinataire visé. L'expéditeur original ne renonce à aucun privilège ou à aucun autre droit si le présent message a été transmis involontairement ou s'il est retransmis sans son autorisation. Si vous n'êtes pas le destinataire visé du présent message ou si vous l'avez reçu par erreur, veuillez cesser immédiatement de le lire et le supprimer, ainsi que toutes ses pièces jointes, de votre système. La lecture, la distribution, la copie ou tout autre usage du présent message ou de ses pièces jointes par des personnes autres que le destinataire visé ne sont pas autorisés et pourraient être illégaux. Si vous avez reçu ce courrier électronique par erreur, veuillez en aviser l'expéditeur.
|
This electronic message and its attachments may contain confidential, proprietary or legally privileged information, which is solely for the use of the intended recipient. No privilege or other rights are waived by any unintended transmission or unauthorized retransmission of this message. If you are not the intended recipient of this message, or if you have received it in error, you should immediately stop reading this message and delete it and all attachments from your system. The reading, distribution, copying or other use of this message or its attachments by unintended recipients is unauthorized and may be unlawful. If you have received this e-mail in error, please notify the sender.
|