Hi all,
My requirement is,
when a user attempts to delete a Vendor, we’d like a dialog box to pop up, similar to the screen shot below. In LARGE RED text should be a message “You are about to DELETE a VENDOR. Press Yes to confirm or No to cancel.” Window title should be “WARNING”. This change should apply to all users.
How to accomplish this?
how to create dialog box with above mentioned?
*This post is locked for comments
Hello,
There can be many ways to achieve this, I am sharing the easiest two ways
1. As suggested by Houssine, add a new button for the dialog box and hide the exiting command button.
2. Create VendTable extension and extend the delete method to write your logic.
In order to do so, you need to set visible to no of the original button and change it with a "Command Button" and the message (dialog box) will pop up automatically,
Note: don't forget to add the method of the formButtoncontrol to the formcommandbuttonControl
you need to set in the properties of the command button in the command property as "deleterecord"
André Arnaud de Cal...
291,996
Super User 2025 Season 1
Martin Dráb
230,853
Most Valuable Professional
nmaenpaa
101,156