cancel
Showing results for 
Search instead for 
Did you mean: 

Inconsistency in Confirmation Dialogue Box PopUp !

Former Member
0 Kudos

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.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

The incosistency may be because of file size. For file handling in portal it needs to be fine tuned. In terms of memory buffer (increase virtual memory). Because if too many people trying to download the file at same time it would create problems.

Second thing I would like to say about approach, Instead of two popups at the same time you can give one db update confirmation popup and give the link in that popup to download file.

Regards

Deepak

Former Member
0 Kudos

Hi Deepak,

File size cannot be a matter of concern as its in a few KB's. And as far as number of concurrent users is concerned its just single user at a time.

Second approach is not applicable in the current scenario. Any action on confirmation DB would immediately take user to the next screen which actually should not happen until the user saves the word file and then confirms OK (or other action buttons available in the confirmation DB).

regards.