Support Article
Export functionality downloads file once and ignores filters
SA-89450
Summary
Export functionality downloads file once and ignores filters selected on the repeating grid.
Error Messages
Not Applicable
Steps to Reproduce
- Drag a table into a section and provide a report definition as the source
- Provide a button to export the table by using the out-of-the-box pzRDExportWrapper activity
- Filter some of the columns and click export
- Click Export again
Root Cause
A defect or configuration issue in the operating environment. Refresh Harness must not be used in invoking an activity and downloading the files.
Resolution
Perform the following local-change:
1) Use Run Script in the navigation control to invoke the downloadFile function present in the UserWorkForm
2) Configure or paste the below snippet in the UserWorkForm
function downloadFile(activityName, className, applicationName, fileName, fileType, rdname){
var suURL = new SafeURL(className+"."+activityName);
suURL.put('ApplicationName', applicationName);
suURL.put('FileName', fileName);
suURL.put('FileType', fileType);
suURL.put('exportmode', fileType);
suURL.put('RDPg', rdname);
var formEle = document.createElement('form');
formEle.id = "download_file";
formEle.method = "POST";
formEle.action = suURL.toURL();
document.body.appendChild(formEle);
formEle.submit();
document.body.removeChild(formEle);
}
3) Pass the required parameters in the navigation controls to invoke the function (downloadFile)
4) Select the Allow direct invocation from the client or a service on the Security tab
Published December 2, 2021
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.