Unfortunately the service isn’t smart enough to allow you to specify what a fill will look like.  In this case your assembler should return everything, return a full collection of the employees (though if you want you can return the employee just with its id property and not completely filled in).  Then the data service will page the employees collection in, instead of returning the whole collection at once.  But it will take care of that at the network level, not your assembler level.

 

Matt

 


From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of dreuimar
Sent: Friday, July 28, 2006 7:21 AM
To: [email protected]
Subject: [flexcoders] Question about Data Service Assemblers

 

If I have a one-to-many relationship between a VO like:

public class company
{
public var id : int;
public var name : String;
public var employees : ArrayCollection;
}

<one-to-many property="employees" destination="employee" lazy="true"/>

And the employees are lazy loaded, how should I construct my employee
assembler? I know that with a one-to-one it calls getItem(), but is
this calling a fill()? And if so, what parameters is it sending?

Thanks,
Brennan

__._,_.___

--
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
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS




__,_._,___

Reply via email to