Confirmation Dialog Problem
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 isnt 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.
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");
wdComponentAPI.getMessageManager().reportException("Error ignoring changes",true);
Thank you very much in advance.