Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
CheckRules Not reporting failed rules
Message
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Divers
Thread ID:
01443788
Message ID:
01443882
Vues:
58
Brian,

>I have a child BO that has a business rule thats failing but it isnt showing it as having failed in mmBusinessObject.CheckRules.
>I've traced it to this line of code in mmBusinessObject.CheckRules(mmBusinessObject businessObject, DataSet ds, string tableName)
>
> Result = businessObject.BusinessRuleObj.CheckRules(ds, tableName, 
>						businessObject.UseErrorProvider);
>
>
>Result is a mmSaveDataResult.
>The rules return boolean (Generated code )
>
>
>Return Me.ErrorProviderBrokenRuleCount = 0
>
When a business rule fails, it calls AddErrorProviderBrokenRule() which adds the broken rule to the ErrorProviderBrokenRules collection. The Me.ErrorProviderBrokenRuleCount simply returns the count from this collection. Can you post the code for the method that checks the rule? I'd like to see how it's calling AddErrorProviderBrokenRule().

Best 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