Child Collection's Parent Property not set before Child_Fetch is Called

Child Collection's Parent Property not set before Child_Fetch is Called

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


GPhillips posted on Thursday, August 19, 2010

I have a BusinesListBase collection in a BusinessBase Object   In order to acquire/set up the collection properly I need the Parent object when Child_Fetch is called.  It appears that it is not set until AFTER the Child_Fetch is called (in BusinessBase.ResetChildEditLevel), which is called after Child_Fetch.  Is there some reason this is not set BEFORE calling the Child_Fetch routine?  Do I need to set it myself?  (If so, where?)

Thanks.

RockfordLhotka replied on Saturday, August 21, 2010

You should pass any values required by Child_Fetch() as a parameter to FetchChild(), and thereby to the Child_Fetch() method.

Copyright (c) Marimer LLC