I have a user interaction box in my script
It produces the attached display and works fine
But when the "abort" button in that box is pressed the script continues setting variables.
Do I need to add something to the script to make the abort button actually abort the script?
Apologies for another newbie question!
Hi Mark,
An exception of type InteractiveUserDetachedException or ScriptAbortException will be thrown when the script is being aborted. For more information, see https://docs.dataminer.services/user-guide/Advanced_Modules/Automation_module/FAQ/How_do_I_abort_a_running_Automation_script.html
Hi Mark, the exception is only being thrown when an automation method (i.e. engine.Sleep, engine.ShowUI, element.SetParameter, …) is being executed. Is it possible that your script is busy with a long operation without any interaction with DataMiner?
Hi Tom,
I don’t think its an exception issue.
It’s just that the abort button that dataminer adds to a “ui” box doesn’t actually do anything.
From the url you sent me:-
If a user aborts an interactive script, this will generate the exception “InteractiveUserDetachedException”, which can optionally be handled in the code of the script. If it is not handled in the script, by default the script will shut down. Otherwise, the further implementation of the code in the script will determine what happens with the script execution.
I don’t handle the exception in my script so why doesn’t the script shut down when the user presses the abort button in the user interaction box?