Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Child Business Object’s Business Rules not working
Message
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Divers
Thread ID:
00937845
Message ID:
00937888
Vues:
34
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform