on 10-04-2006 8:02 PM
hi all,
I am displaying confirmation dialog box on which i have two buttons <b>YES</b> <b>NO</b>. but since the YES button is first on the dialog box it is displayed as default. but i want to make NO button as default with changing the order.
Thanks in advance,
Gopi
Hi
Try This
IWDControllerInfo controllerInfo =wdControllerAPI.getViewInfo().getViewController();
IWDConfirmationDialog dialog =wdComponentAPI.getWindowManager().createConfirmationWindow("NO",controllerInfo.findInEventHandlers("NO"),"NO");
dialog.addChoice(controllerInfo.findInEventHandlers("YES"),"YES");
dialog.setWindowSize(10, 0);
dialog.open();
Kind Regards
Mukesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi karthik,
IWDConfirmationDialog dialog;
String dialogText = "Are you sure want to delete ";
dialog = wdComponentAPI.getWindowManager().createConfirmationWindow(dialogText " " Price,
wdControllerAPI.getControllerInfo().findInEventHandlers("onActionNoDel"),"NO");
dialog.addChoice(wdControllerAPI.getControllerInfo().findInEventHandlers("onActionDeletePricegrp"),"YES");
dialog.setWindowPosition(10,10);
dialog.open();
The problem is here that when dialog is displayed it shows NO YES. but i want YES NO but NO should be default.
Thanks,
Gopi
Hi,
I can able to get, NO as default selection. Try with the below code.
I Created YES , NO Actions.
IWDControllerInfo controllerInfo = wdControllerAPI.getViewInfo().getViewController();
IWDConfirmationDialog dialog =
wdComponentAPI.getWindowManager().createConfirmationWindow(
"Are you Sure To Close?", controllerInfo.findInEventHandlers("onActionNO"),"No");
dialog.addChoice(controllerInfo.findInEventHandlers("onActionYES"),"Yes");
dialog.open();
Regards,
Sridhar
Hi Gopi,
Default depending on the order you adding choice to dialog. swap your YES and NO choice order. then it will change.
Regards, Suresh KB
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.