on 03-13-2008 12:39 PM
Hi All,
I'm wondering is there an easy way to show an confirm dialog to user with out create a new view manually?
Thanks,
YiNing
Hi,
yes
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi ,
use the below code for confirmation box , with 2 options "OK "
and "Cancel"
IWDControllerInfo controllerInfo = wdControllerAPI.getViewInfo().getViewController();
IWDConfirmationDialog dialog = wdComponentAPI.getWindowManager().createConfirmationWindow
( String dialogText,controllerInfo.findInEventHandlers ("ok"),"Ok");
dialog.addChoice(controllerInfo.findInEventHandlers ("cancel"), "Cancel");
dialog.open();
Thanks,
Sunitha Hari
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
80 | |
9 | |
9 | |
7 | |
7 | |
6 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.