Skip to Content
0
Former Member
Feb 18, 2011 at 10:37 AM

Inconsistency in Confirmation Dialogue Box PopUp !

69 Views

Hi,

According to a business scenario on WD Java, user is given an option(on click of a action button) of downloading text data into a word file and updating other details in the backend tables simultaneously. A confirmation dialogue box(DB) pop up appears on successful backend update.

At Runtime, pop up for opening/saving the word file and the confirmation DB should appear at a time.

Code Snippet for word file:

InputStream in = new ByteArrayInputStream(print_file.toString().getBytes());

IWDWebResource wordfile = WDWebResource.getWebResource(in,WDWebResourceType.DOC);;

wordfile .download();

Code Snippet for confirmation DB:

IWDConfirmationDialog dialog ;

dialog=wdComponentAPI.getWindowManager().createConfirmationWindow(msg1,wdThis.WD_EVENTHANDLER_OK, "Ok");

dialog.setTitle("Message!...");

dialog.show();

While doing as mentioned above, everything works fine other than both the pop up are not appearing at a time in all cases. Inconsistency is encountered in cases, when both the pop up appears at a time as expected while in other cases, word pop up appears but the confirmation pop up does not rather SAP progress bar keeps rotating leaving the screen idle untill it is manually refreshed.Although, there is no resource utilization while the progress bar rotates and no delay happens while updating the backend tables.

IE is the browser i am working on and have verified with pop up blocker and similar settings.

Any input on this would be valuable.

regards.