Support Article
Cannot export to excel multiple times per harness
SA-28992
Summary
Cannot export to excel not more then one time.
Error Messages
Not Applicable
Steps to Reproduce
- Create aa Activity.
- Call ConverttoCSV method in one of the steps of the activity.
- Create a button and call the above activity on buttton click event.
Root Cause
Ajax call is excecuted only once.
Resolution
Place this method in userWorkForm between script tags, call in run-script action
function downloadCSV()
{
var form = document.createElement('form');
form.id = "downloadCSV";
form.method = "POST";
//form.target = "_target";
document.body.appendChild(form);
var frm = document.forms["downloadCSV"];
//Support for safari
if(pega.env.ua.webkit)
frm.target = "";
var oSafeUrl = new SafeURL("Goog-RND-Work-RND.{Activityname}");
frm.action = oSafeUrl.toURL();
frm.submit();
document.body.removeChild(form);
}
Published October 27, 2016 - 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.