Hi,

is there a way to show warning message with OK/NO buttons when the cancel button is pressed and does not close the dialog in case of "NO"? I tried to write it by using two different ways, but did not succeeded.

//called after ok/finish has been pressed and the current state data has been applied

//can be used to update your data

// pageNumber: the current page number

// bOK: true=Ok/finish, false=cancel pressed

this.onClose = function(pageNumber, bOk)

{

// DOES NOT WORK

       var btnPressed = Dialogs.MsgBox("Really do this?", Constants.MSGBOX_ICON_QUESTION | Constants.MSGBOX_BTN_OKCANCEL, "Message from Report");         

//DOES NOT WORK

       var btnPressed = this.dialog.setMsgBox("errorDlgMsg", "Really do this?", Constants.MSGBOX_BTN_OK, "Message from Report");

}

Thanks a lot.

 or register to reply.

Notify Moderator