Have you waited for the ResultEvent confirmation from the fill operation before accessing the collection?


From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Dylan Schorer
Sent: Wednesday, October 25, 2006 5:13 PM
To: [email protected]
Subject: [flexcoders] DataService-ArrayCollectionissue

Hi,
When using an ArrayCollection populated using a DataService.fill
command, the length and .itemAt methods behave differently than with a
manually populated array.

When I call ds.fill on an ArrayCollection, the data is successfully
retrieved, and can be displayed in a data grid. Though, if I call
collection.length, it always returns 0, and calling itemAt(x) always
results in an index-out-of-bounds error. How can you get correct data
from these methods, just as you would from a manually populated
ArrayCollection?

__._,_.___

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com





SPONSORED LINKS
Software development tool Software development Software development services
Home design software Software development company

Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___

Reply via email to