on 10-17-2016 4:43 PM
Hi,
We are running Personas 3, SP03, with the latest client and kernel. I'm trying to use the session.utils.showOptionDialog function in my script. The command itself works fine, but it halts the remainder of my script from running. For example, in the script below, the showOptionDialog message appears, but the alert after it does not.
Has anyone else ran across this issue, and is there a way to resolve it? Thank you very much for your help!
session.utils.showOptionDialog("Test", "This dialog box works.", session.utils.MESSAGE_TYPE_INFORMATION, session.utils.MESSAGE_OPTION_OK, undefined, undefined);
alert("This alert does not.");
I think it is supposed to work this way. It pops up a dialog box that needs action.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
yes, "session.utils.showOptionDialog" with "undefined" function in it finishes the script.
If you want to do further scripting depending on the answer of the messagebox you have to replace the "undefinded" position by the function Name "OptionDialogClose".
session.utils.showOptionDialog("Test", "This dialog box works.", session.utils.MESSAGE_TYPE_INFORMATION, session.utils.MESSAGE_OPTION_OK, onOptionDialogClose, "1");
function onOptionDialogClose(){alert("This alert does not.");}
Regards
Thomas
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I think it is supposed to work this way. It is waiting for the users action, like clicking OK, etc. If you are trying to give a message to the user try the "setMessage" method of the GuiStatusBar. It will hit the "alert" message. If you want to stop the script then use "return true".
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
82 | |
10 | |
10 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.