Busy indicator does not go away after using MSOGenerateExcelFile
Busy indicator does not disappear after using MSOGenerateExcelFile.
Steps to Reproduce
Configure a button to perform a section refresh and call MSOGenerateExcelFile activity.
This is an implementation issue. A file download must not be performed in a section refresh. In this case the AJAX success callback was not executed. Additionally, even without a hanging busy indicator, this design will result in the inability to click the button twice in one session. No request will be generated after the first click.
Invoke the file download through a Java Script as described in the following steps.
1. Configure a wrapper activity (which is allowed to be run from a script) to call MSOGenerateExcelFile.
2. Create the below custom download function in the UserWorkForm
function downloadFile(pyActivity, FSFileName, TemplateRFB, DownloadFile)
var sURL = SafeURL_createFromURL(pega.u.d.url);
var formEle = document.createElement('form');
formEle.id = "download_file";
formEle.method = "POST";
formEle.action = sURL.toURL();
formEle.target = "";
3. Call this script instead of the refresh section or activity calls.