Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Business Rules and deleting
Message
De
22/05/2001 22:55:10
Gerald McKinsey
Keystone Consulting Services, Inc.
Yorktown, Indiana, États-Unis
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
The Mere Mortals Framework
Divers
Thread ID:
00509047
Message ID:
00510186
Vues:
24
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform