General information
Category:
The Mere Mortals Framework
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only