Confirmation dialog
What's the best way to implement the following scenario? I have a "Next Period ..." button that allows the user to close the current reporting period and advance the current period. I would like to do a server permissions check on the first click of the button and give the user a warning if they don't have permissions. If the user has rights, I want to present them with a confirmation dialog to confirm that they really want to advance the period.
Our standards do not allow me to disable the button if the user is not authorized, as all functions should always be available, but provide appropriate feedback if they cannot complete.
If it was just a rights check, I could execute a callback event, check the rights and return the script to show the user a warning, and if I wanted to get a confirmation before the rights check, I could confirm the confirmation in the OnClientClick for the button, but I want check the rights before confirming.
source to share