Skip to Content

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

How to setonclose for a ModalWindow/confirmationDialog

Hi,

I'm looking for help here about How can I popup a confirmation dialog or modal window with a close icon on top right?

I've tried codes as following:

IWDConfirmationDialog dialog = wdThis.wdGetAPI().getComponent().getWindowManager().createConfirmationWindow(dialogText, actOk, delete);

dialog.setOnClose(actCancel);

dialog.addChoice(actCancel, cancel);

dialog.setWindowPosition(WDWindowPos.CENTER);

dialog.setWindowSize(400, 100);

dialog.setIcon("~IconLarge/WarningMessage");

dialog.setTitle(textAccessor.getText(IMessageTextComp.CONFIRM_DELETION_TITLE));

dialog.show();

I was able to see the close icon, but when clicked, dump occurs.

I'm developing on ce 7.11

version details:

SAP NetWeaver Developer Studio

SAP Enhancement Package 1 for SAP NetWeaver Developer Studio 7.1 SP01 PAT0000

Build id: 200811082206

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