CreateChildAsync ?

CreateChildAsync ?

Old forum URL: forums.lhotka.net/forums/t/11756.aspx


alex.enjoy posted on Tuesday, December 18, 2012

Hello,

why there is no CreateChildAsync method on the DataPortal?

I have a ContactEdit object containing PrimaryAddressEdit and DeliveryAddressEdit as child objects.
Commonly the DeliveryAddressEdit is null, falling back to the Primary one.

How to create the AddressEdit object for the DeliveryAE property asynchronously from the client side?
There is a button "add delivery Address"  in the UI...

thanks,
Alex. 

JonnyBee replied on Tuesday, December 18, 2012

No child method will use the DataPortal to go to the server (N-Tier).

Meaning that you will normally create Child objects on the client using synchronous calls without any remote access.

If you need to go to the server for initialization then use the "root" DataPortal.Create method and make sure to mark the object as child.

Copyright (c) Marimer LLC