I think you want to look for FDS documentation about a Single Managed
Object. I believe instead of using the DataService.fill() API, you use
DataService.getItem()/DataService.createItem() APIs.
 
http://livedocs.adobe.com/flex/2/langref/mx/data/DataService.html
 
Also, Lin Lin mentioned SMOs on her blog:
 
http://weblogs.macromedia.com/lin/archives/2007/02/how_to_get_sing.cfm
 
Pete

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Darren Houle
Sent: Tuesday, March 06, 2007 3:09 PM
To: [email protected]
Subject: [flexcoders] FDS and single items



I am developing my first FDS application. It's small, and basically just
a 
big form comprised of about 75 fields; radio groups, comboboxes, text 
inputs, etc.

Each time a new form is submitted it creates one row in a large table.
The 
form can be retreived and edited later, which just updates the values in

that existing row.

Since two or three people can have the same form (record) open at the
same 
time, I would like to use FDS to manage the data and stop them from 
overwriting each other when they click "save" but... the FDS
documentation 
and tutorials state in several places that you can only manage 
ArrayCollections of objects. Problem is that in my case I couldn't
possibly 
pull over 3000 records into an ArrayCollection, it would be too big and 
slow.

Is there a way to retreive and manage a single custom object containing
a 
single form/record instead of an entire ArrayCollection of objects? Any 
examples or tutorials out there showing how to do this? Could I possibly

use some function to identify & select a single record, and then pull
that 
one record over into an ArrayCollection that FDS would manage? That
seems a 
little cumbersome.

Darren



 

Reply via email to