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
- Log in to the application
- Configure a button on click of which Refresh-this Section action is invoked
- Set the out-of-the-box MSOGenerateExcelFile activity to download an Excel file
- Click the button once to download the file. The file downloads
- Click the button a second time
Root Cause
A defect in Pegasystems’ code or rules.
Resolution
Perform the following local-change:
- Create a JavaScript function in UserWorkForm
- Set the function as below:
- On button click, choose the Run Script as an action and invoke above function
Published July 23, 2018 - Updated October 8, 2020
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.