cancel
Showing results for 
Search instead for 
Did you mean: 

Confirmation Dialog Box

jnmurthi
Participant
0 Kudos

hi all,

i have to display a message on click of a button. when i click the button, a message needs to be displayed in a confirmation dialog box with ok and cancel buttons.

how can i write code for that?

and

is there any chance of changing the Ok and Cancel buttons to Yes and No respectively??

Accepted Solutions (0)

Answers (6)

Answers (6)

jnmurthi
Participant
0 Kudos

Thnk u.

sid_sunny
Contributor
0 Kudos

Hi Narayan,

You can go through the following tutorial for this

<a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/42af9f90-0201-0010-6099-ba67e5426bdf">Link</a>

Regards

Sid

Former Member
0 Kudos

Mr.Murthy,

Please check the below link for more detailed example

https://www.sdn.sap.com/irj/sdn/downloaditem?rid=/webcontent/uuid/f1cfe990-0201-0010-22ac-dbe4cbdef5... [original link is broken]

regards

Anil Dichpally

former_member189631
Active Contributor
0 Kudos

Narayana,

Confirmation dialog Box has only the "OK" Button ,it doesnt have cancel button.

As per ur requirement u can create window which has 1 view.

In this view u can have 2 Buttons "Ok" and "CANCEL".U can minimize the

window's height and length also...!!

Regards,

Ramganesan K.

Former Member
0 Kudos

hi,

IWDControllerInfo controllerInfo = wdControllerAPI.getViewInfo().getViewController();

String dialogText = "The email was successfully sent!";

IWDConfirmationDialog dialog =

wdComponentAPI.getWindowManager().createConfirmationWindow(

dialogText,

controllerInfo.findInEventHandlers("ok"),

"ok");

dialog.addChoice(controllerInfo.findInEventHandlers("CAncel"), "cancel");

Goto view and in actions create ok and cancela actions.

Thanks,

Lohi.

dialog.open();

Former Member
0 Kudos

Hi,

there is a tutorial called "Creating Dialog Boxes":

/docs/DOC-8661#23 [original link is broken]

You will find the most information you need there.

kind regards

Stefanie