Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Child Business Object’s Business Rules not working
Message
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Miscellaneous
Thread ID:
00937845
Message ID:
00937888
Views:
33
Douglas,

>I have setup BusinessRules for both a Business Object and Child Business object. The Child Business object’s “ public override bool CheckRulesHook “ never gets called when I attempt to save any data. The parent business object’s rules are working fine. On the web page I have registered the child business object as follows:
>
>Parent = (parent)this.RegisterBizObj(new parent);
>Child = (child)this.RegisterBizObj(new child);
>Parent.RegisterChildBizObj(child);
>
>And have set the child biz object AutoCheckRules = true;
>
>I’m using the web pages Save method, passing the parent biz object in.

Make sure you set the child business object's AutoSaveOnParentSaved property to true.

Regards,
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform