on 01-19-2009 9:24 AM
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
Hello Josie!
Your code is right, but, have a little change for works fine how you want:
dialog.setOnClose(wdThis.WD_EVENTHANDLER_ON_ACTION_ACT_CLOSE, true);
Only with it, your application works fine!
Regards,
Ronaldo Rampelotti
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.