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

Export functionality downloads file once and ignores filters



Export functionality downloads file once and ignores filters selected on the repeating grid.

Error Messages


Not Applicable


Steps to Reproduce

  1. Drag a table into a section and provide a report definition as the source
  2. Provide a button to export the table by using the out-of-the-box pzRDExportWrapper activity 
  3. Filter some of the columns and click export
  4. 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.


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'); = "download_file"; 
formEle.method = "POST"; 
formEle.action = suURL.toURL();


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

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?

Want to help us improve this content?

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
Contact us