Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Set the focus - Confirmation Dialog Box

Dear all,

We implemented the pop-up of confirmation dialog box with 'YES' and 'NO' options on click of a particular button.

But, by default the focus is on 'YES' button.

How to change the focus to 'NO' button ?

Please help me.

Former Member
Former Member replied

Hi,

Try this:

IWDControllerInfo controllerInfo =
wdControllerAPI.getViewInfo().getViewController();
String dialogText = "Confirm Deletion";
IWDConfirmationDialog dialog =
wdComponentAPI.getWindowManager().createConfirmationWindow(
dialogText,
controllerInfo.findInEventHandlers("YES"),
"Yes");
 
dialog.addChoice(
controllerInfo.findInEventHandlers("NO"), "No",true); 
// calling the addChoice method which has three arguments addChoice(IWDEventHandlerInfo eventHandler, java.lang.String label, boolean enabled)
dialog.open();
 

Regards,

Jaya.

0 View this answer in context

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question