Child_Insert not implemented.

Child_Insert not implemented.

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


Eblanchette posted on Tuesday, March 16, 2010

I am facing this exception when trying to call ERList.BeginSave((o,e)=>{.........});

The object that is contained within the collection has the Child_Insert implemented, and it is coded exactly the same way as all my other lists, which are working perfectly.

Any advice?

 

RockfordLhotka replied on Tuesday, March 16, 2010

Standard overloading rules apply. So if the parent object passes any parameters to the save child call, the Child_XYZ methods have to have matching parameters.

Eblanchette replied on Tuesday, March 16, 2010

When calling Dataportal.updatechildren(x), how can we know what parameters are passed?

RockfordLhotka replied on Tuesday, March 16, 2010

Because you pass them in. Whatever you pass to UpdateChildren() is passed to the child methods.

Eblanchette replied on Tuesday, March 16, 2010

And ERList.Dataportal_Update is not hit.

am_fusion replied on Tuesday, March 16, 2010

I don't think Editable Root List has a Dataportal_update.  the reason being that the root items in the list are saved individually, so the only dataportal call is for the list item.... actually, editable root list doesn't even have a beginSave (I don't think).  Are you using a class derived from BusinessListBase or EditableRootList?

Eblanchette replied on Tuesday, March 16, 2010

    [Serializable()]

    public partial class LegTypeERList : Csla.BusinessListBase<LegTypeERList, LegTypeER>

 

It is a BusinessListBase, with Create/Fetch/Update in the data Access region.

am_fusion replied on Wednesday, March 17, 2010

I am at a loss to explain why your Dataportal_Update is not getting invoked on your BLB subclass... can you post your BLB code?

Copyright (c) Marimer LLC