Lotus Notes Client version 5 to 7
Using a computed subform that has specific field values not on main document, so querysave event has to be on the relevant subform.
The QuerySave event on the subform checks the value of a field and if not entered correctly, it displays a dialog box advising the user to re-enter and takes them back to the field that has the error when they click OK.
Issue - When you click OK the document is closed, so the user cannot fix the issue.
It seems that the querysave event on the main document gets run first, as there are no errors, it then moves to the querysave event on the subform, if there is an error it displays the message as usual, but when the user clicks OK it takes them back to the field with the issue for a split second, but as the main forms querysave event has already ran, it closes the document.
Has anyone any idea on how I can stop the document from closing so that the user can fix the issue, then click save again?
Free Guide: Managing storage for virtual environments
Complete a brief survey to get a complimentary 70-page whitepaper featuring the best methods and solutions for your virtual environment, as well as hypervisor-specific management advice from TechTarget experts. Don’t miss out on this exclusive content!