Brennan,

Your Client fill method, does it generate your info property and fill it with 
at least his ID?
For what I've used lazy loading with bindings, you'll have to initialize those 
properties at least with their id's.

João Fernandes

-----Original Message-----
From: flexcoders@yahoogroups.com on behalf of dreuimar
Sent: Wed 26-Jul-06 8:26 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] one-to-one DS mappings
 
Hey guys,

I have two VOs -> ClientVO and ClientInfoVO

ClientVO has just a unique client identifier, the client name, and a
property with datatype ClientInfoVO (variable name 'info').
ClientInfoVO has addresses, contacts, etc.

In the dataservices config, I have a destination for ClientAssembler
which fills an array collection with all of our clients and their
names. I also have ClientInfoAssembler with just getItem() that pulls
everything else about the client (that is, everything ClientInfoVO has
properties for).

In Flex I have a drop down and some labels. The drop down list is
loaded with all the ClientVOs (all with null ClientInfoVOs for
'info'). The labels are all bound in this fashion:
{model.selectedClient.info.address}. When the drop down sets a new
model.selectedClient, I was hoping that DS would go and try to fill
the 'info' property since it was requested. After all, isn't this what
lazy loading is?

Can anyone help me with this issue?

Thanks,
Brennan







------------------------ Yahoo! Groups Sponsor --------------------~--> 
See what's inside the new Yahoo! Groups email.
http://us.click.yahoo.com/3EuRwD/bOaOAA/yQLSAA/nhFolB/TM
--------------------------------------------------------------------~-> 

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

<<winmail.dat>>

Reply via email to