cancel
Showing results for 
Search instead for 
Did you mean: 

displaying a ConfirmationDialog

Former Member
0 Kudos

Hello!

How can I display very simply a ConfirmationDialog to show an iformation?

Regards

sas

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Ayyapparaj thank you!

Regards

sas

Answers (3)

Answers (3)

Former Member
0 Kudos

Ayyapparaj KV

how can I define a close event handler. I dont have a close event handler

Regards

sas

Former Member
0 Kudos

Hi,

Create one using the Actions tab.

Regards

Ayyapparaj

Former Member
0 Kudos

Hi,

You can use the following:


IWDControllerInfo cont = wdControllerAPI.getViewInfo().getViewController();
IWDConfirmationDialog conDialog = wdComponentAPI.getWindowManager().createConfirmationWindow(dialogText,cont.findInEventHandlers("Ok"),"ok");
conDialog.addChoice(cont.findInEventHandlers("newEmail"),"new email");
conDialog.setTitle("E-Mail Success");
conDialog.show();

Here the parameter which findInEventHandlers() method takes is the name of the event methods where you can process the click of specific button on confirmation.

Hope this will help you.

thanks & regards,

Manoj

Edited by: Manoj Kumar on Feb 11, 2008 5:05 PM

Former Member
0 Kudos

Hi,

use as follows



//Usage: wdComponentAPI.getWindowManager().createConfirmationWindow(confirmationText, action, label)
	  
	  IWDControllerInfo controllerInfo = wdControllerAPI.getViewInfo().getViewController();
	  String dialogText = "Your message Goes Here";
	  //controllerInfo.findInEventHandlers("Close") Close event handler should be existing , its case sensitive
	  IWDConfirmationDialog dialog = wdComponentAPI.getWindowManager().createConfirmationWindow(
	  dialogText,controllerInfo.findInEventHandlers("Close"),"Close");
	  dialog.show();

Regards

Ayyapparaj