Skip to Content
0
Former Member
Jul 30, 2005 at 06:08 AM

Displaying Confirmation Dialogbox

17 Views

Hello All,

Below is my code for displaying the confirmation dialogbox. However, I am currently having problem to have this popup box appear. Can someone point out where I may have gone wrong ? Thank you very much.

PS : I have already created an event handler named "handleOk".

<u><b>My Code</b></u>

// Popup dialog to display error and prompt user to try again.

wdComponentAPI.getMessageManager().reportSuccess("Dialog box has opened.");

String displayText= messagegetUserInfoFromId + " . Please try again or contact the IT Helpdesk for further assistance.";

IWDConfirmationDialog dialog = wdThis.wdGetCreationCompController().wdGetAPI().getWindowManager().

createConfirmationWindow( displayText,

wdThis.wdGetAPI().getViewInfo().getViewController().findInEventHandlers("handleOk"),

"Ok");

dialog.open();

wdComponentAPI.getMessageManager().reportSuccess("Dialog box has closed.");

from

Kwok Wei