Saving a Root List

Saving a Root List

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


smims posted on Thursday, April 02, 2009

I have a need to save a root list (Parent List). It was suggested to me that I might be able to initiate the save from the root list (BLB) with a DataPortal_Update() and call Child CRUD operations on my root object (BB), hence taking care of any Insert/Updates/Deletes (in a one-shot save). Can this work and if so, how do I trigger the Child CRUD operations from the DataPortal_Update() of my List object (BLB)?

I've seen other post where someone suggested to call NON CSLA CRUD operations from the List object's (BLB) DataPortal_Update() ... is this a correct/good way to handle root list saves?

Thanks,
SMIMS

ajj3085 replied on Thursday, April 02, 2009

If you're using 3.5 or higher, you should be able to just call base.Child_Update()  in your BLB override of dataportal_update.

smims replied on Thursday, April 02, 2009

Thanks .. that appears to have been the trick.

Regards,
SMIMS

Copyright (c) Marimer LLC