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

Refresh section does not work with FilePath control

SA-80402

 

Summary

Refresh section does not work with FilePath control.

 

Error Messages

Not Applicable

 

Steps to Reproduce

  1. Add a FilePath control.
  2. Add a button on the screen with the two actions below,

    - OpenURLIn Window with an activity to set a flag
    - Refresh section

     
  3. Create another button whose visibility is based on the flag which is set in the above activity. The Refresh section does not work while the Refresh harness works.

 

Root Cause

An issue in the custom application code or rules.

Issue with timing. The openUrlInWindow action does not pause the Event queue. Since the refresh section takes less time than the Refresh harness, it executes even before the openUrlInWindow activity. This is observed in the Tracer.

 

Resolution

Perform the following local-change:

  1. Use a separate activity to set the flag and call it with the 'Run activity' action, and then the 'Open URL in window' action with earlier PDF generation activity. The final action can be 'Refresh section'.
  2. Catch block for 'Filename' property in the FilePath control.
Suggest Edit

Published August 15, 2019 - Updated December 2, 2021

Did you find this content helpful? Yes No

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.

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