12 Replies Latest reply on Jun 16, 2016 8:20 AM by beverly

    Button to stop a script running



      My solution have a script that take a very long time to run.


      What I need:

      I am looking for a way to let the user exit the running script by a dialog box, so I can ask him to confirm that he really wants to halt the script and handle how the script will be aborted.


      I currently have a progress bar and I would like to have a button under it that would cancel the script, but we can't click on it while a script is running.


      What is the best way to do this ?