Hi Joaquin,
try following:
IWDConfirmationDialog dialog = wdComponentAPI.getWindowManager().createConfirmationWindow( "Do u want to save data?", wdControllerAPI.getControllerInfo().findInEventHandlers("onEventYes"), "Yes"); dialog.addChoice( wdControllerAPI.getControllerInfo().findInEventHandlers("onEventNo"), "No"); dialog.setWindowPosition( WDWindowPos.CENTER ); dialog.setWindowSize( 10, 20 ); dialog.open();
where "onEventYes" and "onEventNo" - existing event handlers.
Regards, Maxim R.
Add a comment