[flexcoders] Re: FDS - how do I manage a single item?

2006-08-01 Thread Dmitry Miller
show(faultEvent.fault.faultString, "Error Logging In"); > > })); > > > > Jeff > > > > > > From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On > Behalf Of Dmitr

RE: [flexcoders] Re: FDS - how do I manage a single item?

2006-08-01 Thread Jeff Vroom
t: Tuesday, August 01, 2006 2:20 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: FDS - how do I manage a single item?   Jeff, hi I am trying to retrieve item by its id. And I tried your suggestion yesterday. var ir:ItemReference = ds.getItem({id:userId}); Now, given the item ref

[flexcoders] Re: FDS - how do I manage a single item?

2006-08-01 Thread Dmitry Miller
Jeff, hi I am trying to retrieve item by its id. And I tried your suggestion yesterday. var ir:ItemReference = ds.getItem({id:userId}); Now, given the item reference (ir) how do I "connect" ir to the actual variable (me)? When I tried me = User(ir.result); Flex started compaining. Could you, p

[flexcoders] Re: FDS - how do I manage a single item?

2006-08-01 Thread jeffjvroom
Either with dataService.getItem, if the item exists and you have its id or dataService.createItem if the item does not exist and you want to create a new one. If you need to actually execute a query to retrieve the item (e.g. you are trying to retrieve a User by the lastName), you have to use