cancel
Showing results for 
Search instead for 
Did you mean: 

Change Confirmation Dialog Title

Former Member
0 Kudos

Hi all,

Does anyone know how can I change the title of a confirmation dialog ?

Thanks,

Jesus.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Jesus,

IWDConfirmationDialog extends IWDWindow interface. So you can use the method setTitle of IWDWindow to set the title.

Here is a sample code. Remember to create a eventhandler ok before running this.

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

String dialogText = "Test successfull";

IWDConfirmationDialog dialog = wdComponentAPI.getWindowManager().createConfirmationWindow(dialogText, controllerInfo.findInEventHandlers("ok"), "ok");

dialog.setTitle("Successful");

dialog.open();

Regards,

Shubham

Former Member
0 Kudos

Hi Jesus,

IWDWindow has the setTitle() method only from SP12 onwards (https://media.sdn.sap.com/javadocs/NW04/SP12/webdynpro/com/sap/tc/webdynpro/services/session/api/IWDWindow.html).

So it all depends on your version. If you are using an older version, you have no <b>recommended</b> method for this (check the following links )

Best Regards,

Nibu.