Skip to main content

This content has been archived and is no longer being updated. Links may not function; however, this content may be relevant to outdated versions of the product.

Support Article

Unable to download Excel from second button click onwards

SA-58557

Summary



The user is able to download an Excel file on click of a button. However, this does not work from the second click onwards.


Error Messages



Not Applicable.


Steps to Reproduce

  1. Log in to the application
  2. Configure a button on click of which Refresh-this Section action is invoked
  3. Set the out-of-the-box MSOGenerateExcelFile activity to download an Excel file
  4. Click the button once to download the file. The file downloads
  5. Click the button a second time


Root Cause



A defect in Pegasystems’ code or rules. 


Resolution



Perform the following local-change:
  1. Create a JavaScript function in UserWorkForm
  2. Set the function as below:


     
  3. On button click, choose the Run Script as an action and invoke above function



 

Published July 23, 2018 - Updated October 8, 2020

Was this useful?

0% found this useful

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

We'd prefer it if you saw us at our best.

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice