Skip to Content

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

Confirmation Dialog Problem

Hello!

I am facing a peculiar problem in the production system where in the confirmation dialog isn't working and the NullPointerException is getting thrown. For some reason the production server isn’t getting the handle for the event even though they are defined and the same piece of code is working fine in both Dev & QA.

Could someone look into the code and let me know what I can do to make it work.

-


try

{

String dialogTxt = "Are you sure you want to ignore changes? ";

IWDEventHandlerInfo eventIgnore = wdControllerAPI.getViewInfo().getViewController().findInEventHandlers("evtIgnoreChanges");

IWDConfirmationDialog dialog = wdComponentAPI.getWindowManager().createConfirmationWindow(dialogTxt,eventIgnore,"Yes");

IWDEventHandlerInfo eventIgnoreCancel = wdControllerAPI.getViewInfo().getViewController().findInEventHandlers("evtIgnoreCancel");

dialog.addChoice(eventIgnoreCancel,"No");

dialog.setWindowPosition(WDWindowPos.CENTER);

dialog.setWindowSize(250,50);

dialog.open();

}catch(Exception ex)

{

wdComponentAPI.getMessageManager().reportException("Error ignoring changes",true);

ex.printStackTrace();

}

-


Thank you very much in advance.

Regards,

Vikram

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