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:
01444034
Views:
47
Brian,

>No it still doesnt make sense. The problem doesnt appear to be in my checkrules code. If you go through the MM code I sent you will find
>that the checkrules hook is returning a boolean value ( thats the return value added by the BO gen. ). Now look at the MM checkrules code I sent. Its storing that returned boolean in Result. Result is a mmSaveDataResult. so when a rule fails the mmcheckrules code gets a 0 back
>In mmSaveDataResult rules broken is 1 not 0. Nothing in checkrules ever checks the actual error provider or the broken rule count.
>It checks the return result from the checkrules hook

The code you sent me is from mmBusinessObject. This code doesn't call your CheckRulesHook() method directly. Check the code, you won't see a call to CheckRulesHook(). Rather, this method calls your business rule object's CheckRules() method which in turn calls your custom business rule object's CheckRulesHook().

What version of MM .NET are you using?

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