Hi,
I've added additional validation to the Project Maintenance window and trying to prevent users from saving it before correcting those errors. When user closes the window with some changes in it, GP will prompt "Do you want to save changes". Upon clicking "save", my validation runs and if validation fails, I need to cancel the save operation and let user correct the error. we can achieve this in VBA by updating the Modal Dialog response to "Cancel", but VS tools for GP's AfterModalDialog event responses are Readonly and thus it's making it impossible to cancel the event.
Any Ideas?
Regards,
Jothikrishnan
*This post is locked for comments
Thank you Shyam. I think I've tried that already and didn't work out in my case, but let me double check and update here.
I think it will work if you change your validation from AfterModalDialog to BeforeSaveRecord event.
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,253 Super User 2024 Season 2
Martin Dráb 230,188 Most Valuable Professional
nmaenpaa 101,156