How can I get the Dialog result (Yes/No/Cancel) after closing the dialog.
dialogs.createOptionDialog()
.withCaption(title + "(" + msgSetNbr + "," + msgNbr + ")")
.withMessage(defaultMessage)
.withContentMode(ContentMode.HTML)
.withType(Dialogs.MessageType.CONFIRMATION)
.withActions(
new DialogAction(DialogAction.Type.YES)
.withHandler(e -> result = Result_Yes),
new DialogAction(DialogAction.Type.NO)
.withHandler(e -> result = Result_No)
)
.show();
return result;
The code above can not work to get the result. Is there any other approach?
Thanks,