Hi Dirk,

getItem() will always fetch the current state of the requested object from the 
server and update the local instance with the result if it exists. If you don't 
have auto sync enabled (server pushed updates) this is how you can periodically 
refresh your local instance.

If you call getItem() you'll already have a reference to the item so just hang 
onto that. If you've fill()'ed and you want to get a reference to an instance 
in your filled ArrayCollection take a look at the ICursor.find<X>() APIs.

Best,
Seth

________________________________________
From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Dirk 
Eismann
Sent: Friday, August 25, 2006 7:43 AM
To: [email protected]
Subject: [flexcoders] FDMS: check, if an item exists on the client?

Is there any way in FDMS to get an item without really going to the
server if it's on the client already? 

I found that calling dataService.getItem(uid) always goes to the server,
even if the item in question is available on the client. This is
unnecessary overhead IMHO if the item is available in the
DataStore/Collection. 

Do I have to implement my own lookup strategy here???

Thanks,
Dirk.
 


--
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

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to