Good Day,
I am using ARIS 9.8.
I am creating my Dialog as follows:
Dialogs.showDialog(dlgAddRemove, Constants.DIALOG_TYPE_ACTION, "Add/Remove Objects");
And then adding a PushButton to the DialogTemplate:
iDialogTemplate1.PushButton(12, 135, 100, 20,"Remove","btnRemove");
Currently the only way to close the dialog is by pressing the OK or Cancel buttons.
Is it possible to set the result value and close the dialog from within the btnRemove_pressed function?
Regards,
Freddy
Torsten Haase on
Hi Freddy,
sorrily you cannot close a dialog from inside a handler function like btnRemove_pressed.
The result value of a dialog can be set in the handler function "getResult":
this.getResult = function() {
return x;
}
this.btnRemove_pressed = function()
{
x = 17
}