Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Business Rules and deleting
Message
From
22/05/2001 22:55:10
Gerald McKinsey
Keystone Consulting Services, Inc.
Yorktown, Indiana, United States
 
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Miscellaneous
Thread ID:
00509047
Message ID:
00510186
Views:
22
Hi Robert,

>I like the idea of the BizRulesMethod but a question: Do all rules fire when checking for the delete condition?

No, and actually we didn't want them all to fire. What we did was to insert code in the Delete method of our base BizObj class that makes a call to our base BizRule class to a method we created called CheckDeletedRules() before the delete is issued. If it encounters broken rules as a result of the check, we return back out of the delete gracefully. This way, it allows us to only check our delete rules when a delete is done, and the rest when a save is done. Please let me know if I can be of any assistance.

Thanks,
Brian
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform