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

Modal window gets minimized

SA-9846

Summary



A section is configured to launch a harness. On launch of the harness, an activity is called which generates a URL for PDF. The activtity also does a Show-HTML which has the code to launch the PDF in the same window as well as refresh the parent screen from where the hanress gets launched.

On refreshing, the focus shifts back to the main screen instead of the popup screen. The popup also does not have resize\maximize options which is required for the PDF reading.
 

Error Messages



Not Applicable.

Steps to Reproduce



1. Create a section with a button to launch a harness.
2. In the harness, include a custom section to call an activty on load of harness.
3. In the activity, hard-code a URL for PDF and call the view html. Also make sure to change some property value so that on refresh can be observed
4. The view html should refresh the main screen first and then do a window.open to open the document in the same window
.

Root Cause



The main screen had a non-autogenerated control which takes the focus when it loads. On refresh, the code executes again and takes the focus. 

Resolution



The changing focus is required on other landing page as it brings focus to warning message. This section is referred at a lot of places in the application. The code has been changed so that focus is not brought back to this section if used for the popup specific scenario.

Launch Harness does not support resizable screen. LaunchURL is used instead in New WIndow which gives the resizable option. The Option requires an activity which does a 'Call Show-Harness' to show the required harness.

Published June 12, 2015 - Updated October 8, 2020

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