Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Business Rules and deleting
Message
 
 
À
18/05/2001 23:45:13
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:
00509385
Vues:
22
I modified the framework with a PreDeleteHook (forms and cListObjEdit) to check for conditions that would preclude deleting a record. In my particular case if a user tries to delete certain records that have children, the predelete hook calls a BizObj requery to check, returns .F. if children are found, and displays a list of the children for the user in a modal form where OK is the only available response. Several custom properties where added as well.

I believe Kevin has incorporated the PreDeleteHook into the next framework release.

Another alternative is to check the conditions when the form refreshes and disable the delete button.

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


Bob
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform