cancel
Showing results for 
Search instead for 
Did you mean: 

protectdoublesubmit and dynamic Exceldownload

Former Member
0 Kudos

Hi all out there,

i have created a BSP-Application in MVC-Design-pattern wich shows a large list. There are some function for manipulating the list or recalculating data. Because the response time is some times long i have placed a

<protectdoublesubmit />

on the view. Additionally there is a button to download the tableview-Data to Excel. No the "please-wait" popup comes up and excel starts, but from that point i can not do any input on my Application.

Is there a solution to prevent the "please wait" popup in same cases or to send a repsonse to the browser after opening the excel-file (this is the content of the origanal response created at ON_HANDLE_EVENT)

Thanks for any help.

Kindly regards

André

Accepted Solutions (0)

Answers (1)

Answers (1)

thomasalexander_ritter
Active Contributor
0 Kudos

Hi,

it looks like the <protectdoublesubmit /> element has an attribute active which you can use to deactivate the element when the user wants to get the excel file.

regards

Thomas

Former Member
0 Kudos

Hi Thomas,

thanks. I tried it bu it does not work.

Here a little peace of code of my view:


... <xhtmlb:protectdoublesubmit active="true" />
... <htmlb:button id="btn1" ....></htmlb:button>
... <htmlb:button id="btn2" ....></htmlb:button>
...
... <xhtmlb:protectdoublesubmit active="false"></xhtmlb:protectdoublesubmit>
... <htmlb:button id="btnDownload" ....></htmlb:button>

the result no is that i can press every button and no "waiting..."-Popup is displayd. It's like before without any .

Regards,

André

thomasalexander_ritter
Active Contributor
0 Kudos

Hi,

I think you have the following problem:

1)Display Site (In the html code -> protect = true)

2)User presses download button

3)"Please wait" window appears because the client code has it enabled

this solves your problem:

1)Display Site (In the html code -> protect = true)

2)User presses download button

3)Display site again (In the html code -> protect = false)

4)Right after the site is displayed trigger another request (javascript)

5)Since the first roundtrip deactivated the protect tag no "Please wait" window appears.

But this solution is really ugly and confuses every user.

Did you consider a different approach where the user has to download the excel sheet? Then you could use Thomas extension:/people/thomas.jung3/blog/2004/09/02/creating-a-bsp-extension-for-downloading-a-table

I use this approach and our users are happy with the solution and I have no problems with the "Please wait" window.

regards

Thomas