Hi Brian,
You can use the RefBizObj collection in the parent BizObject to get a reference to a registered Child BizObject:
MyChildBizObj oBizObj = (MyChildBizObj)this.RefBizObj.Get(typeof(MyChildBizObj));
>How do I reference a BizOject’s child BizObject?
>
>I have a Clients BizObject (oClient). I need to establish a rule ( if A in client = “some value” then Contacts record count must be >0. This rule will not always need to be imposted. I can’t use the clients PK to lookup the contact records because when I’m adding there wont be a PK yet (or an FK in the contacts for that matter, they will be added at the sametime). What I’d like to do is retrieve a reference to oContacts. If it exists then I pass it to a function to check the recordcount. I think this would allow me to process my rule. One SMALL problem, I can’t find a way to get a reference to a BizObjects child objects. Anyone know how?
>
>
>Thanks
>Brian G
-----------------------------------------
Cathi Gero, CPA
Prenia Software & Consulting Services
Microsoft C# / .NET MVP
Mere Mortals for .NET MVP
cgero@prenia.comwww.prenia.comWeblog: blogs.prenia.com/cathi