Hello Team,
I’m trying to implement the following logic in Visio:
When the button is clicked, it triggers the dataminer automation script and this part already works.
Now I need to prevent the user from clicking the button again for X minutes and show a popup stating wait for X min.
Has anyone come across this functionality or dealt with a similar scenario?
An alternative that doesn't involve any elements and connectors is to set the execution time in an automation script memory file.
If not enough time has passed, just close the script and do nothing, or make it interactive and show a message to the user.
If enough time has passed, do the actions and set a new execution time in the memory file.
Hi Ramesh,
Rather than displaying a popup, you might consider 'disable' the button (see Designing buttons with four different states). Esentially, this is a group shape where every child shape represents the state of a button. A child shape can be conditionally shown/hidden based on a condition. What you could do is to link the 'Disable' child shape to a condition in the connector that reflects the busy state of the action.
Hope it helps.
Hi Ramesh,
The solution from Miguel is an option, however you could also work with any shape you'd like and conditionally show it.
An option could be that you are setting a session variable when you execute the script. So clicking that shape would both execute the script, but also set the session variable. Based on this session variable, you could show a disabled shape. In your automation script, you can again set the session variable to another value to again unblock execution (Passing Automation script output to session variables).
There is also a Lock option to lock elements when you execute a script, but I don't think that is really the use case your after.
Kind Regards,
Jarno