Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Business Rules and deleting
Message
 
 
To
18/05/2001 23:45:13
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:
00509385
Views:
20
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform