Skip to Content
0
Jan 12, 2011 at 05:30 AM

Enabling Pop Up Blocker Refreshes the Application

56 Views

Hi,

Greetings!

I have developed an application which contains few input fields wherein user can enter the data and on clicking of submit button i am passing these values as an input parameters to an EJB model and later fetching the output values and displaying them in a table.

Here i have also implemented export to excel functionality using poi.jar files wherein i am saving the excel sheet' s datasource inside an value attribute of type "com.sap.ide.webdynpro.uielementdefinitions,Resource" and at the time when user clicks on the button - "Export to Excel" i caling the method which creates the excel sheet in required format and i am also calling this value attribute 's download method i.e., <value attribute>.download();

And everything works fine expect with the fact that once user clicks on submit button data gets populated into the table and on click of export to excel button a pop up blocker comes up and on right click and selecting download option the screen gets refreshed and all the values which user entered in the inputfields and the table which existed in the table gets disapeared and here user is forced to click on submit button once again.

Here it would be very helpful if any one can give a solution on how i can (retain/ sustain) the values which existed in the input fields and table even post selecting the download option from the pop up blocker' s option, with out the need of clicking on submit button all again.

Thanks in Advance,

Vipin.