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

Unable to set custom title for browser window to launch harness

SA-64329

Summary



On a button click, an open URL in window action is used to launch a new harness. The requirement is to set a custom title for the browser window.


Error Messages



Not Applicable.


Steps to Reproduce

  1. Log in to the application
  2. Add a button on a section
  3. In the action set for the button, launch the 'Open URL in window' action


Root Cause

The window title is pyLabel of the class where the harness is present.


Resolution



Perform one of the following local-changes:
 
  • Create a script file with the following code:


window.document.title = "Harness Title";

Alternatively, include this script file in the 'scripts and styles' tab of the harness that needs to be displayed in the pop-up.

  • Use the pyWindowTitle declare expression and choose a property in it. For example, set it to pyID.


 

Published February 20, 2019 - 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