Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
CheckRules Not reporting failed rules
Message
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Miscellaneous
Thread ID:
01443788
Message ID:
01443882
Views:
57
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform