Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How do I reference a BizOject’s child BizObject?
Message
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Miscellaneous
Thread ID:
00818503
Message ID:
00818702
Views:
23
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.com
www.prenia.com
Weblog: blogs.prenia.com/cathi
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform