Replacement for DataPortal_Create in EditableChild?

Replacement for DataPortal_Create in EditableChild?

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


burmajam posted on Friday, June 30, 2006

Hi

What method should be used for initialisation of EditableChild on server? Like DataPortal_Create in EditableRoot without [Runlocal()]. As far as I realize, constructor is executed on client and insert method is executed on server, but before saving not when initialising object.

Any ideas?

Brian Criswell replied on Friday, June 30, 2006

DataPortal_Create is used whenever you need to initialise an object with data from a data source, regardless of whether it is a root or child object.

burmajam replied on Friday, June 30, 2006

Right! Silly me Embarrassed [:$]

So instead of calling constructor from childs internal static NewABC I should call DataPortal.Create<ABC>(new Critiria(blah, bla))! It works.

Tnx.

Copyright (c) Marimer LLC