Information générale
Catégorie:
The Mere Mortals Framework
Titre:
Returning .F. from PreSaveHook
I want to do some validation before saving records in a form based on the CBizObjMaintenanceForm class. I want to abort the save if the validation fails. I tried putting "RETURN .F." in the PreSaveHook method to see if this is the way to go. It works great! The save does not happen, and focus returns to the OK button. However, a click on the List tab instead of the OK button results in a Save if the user answers yes to the messagebox that asks "Do you want to save your changes first?"
Any suggestions?
Thanks,
Dave
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement