subsequent popupwindows
I am trying this:
IWDConfirmationDialog dialog1 = this.wdComponentAPI.getWindowManager() .createConfirmationWindow( "Is it working (1)?", wdControllerAPI.getControllerInfo() .findInEventHandlers("ok"), "Ok1"); dialog1.setTitle("Dialog 1"); dialog1.setWindowPosition(WDWindowPos.RIGHT); dialog1.open(); IWDConfirmationDialog dialog2 = this.wdComponentAPI.getWindowManager() .createConfirmationWindow( "Is it working (2)?", wdControllerAPI.getControllerInfo() .findInEventHandlers("ok2"),"Ok2"); dialog2.setTitle("Dialog 2"); dialog2.setWindowPosition(WDWindowPos.CENTER); dialog2.open();
When I run this, the two dialogboxes are displayed at the same time, and one of them has no button.
What I want is first display the first one, press ok, and then display the second one.
In fact, I want to have two alerts. I want to use it for debugging purposes, i.e. to display values in a for-loop.