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

Print Harness does not auto expand collapsed header sections

SA-86703

Summary



The Print harness does not auto-expand the collapsed header sections when the popup is loaded.
The printHarness JavaScript function included by the harness_print.js text file in the PrintView harness must expand all the collapsed  headers.



Error Messages



Not Applicable


Steps to Reproduce

  1. Configure collapsible layouts in the section.
  2. Click the Print link in the Case Tools section.


Root Cause

harness_print.js - Code that expands only the grids layout is handled. This does not work for dynamic layouts.


Resolution



Perform the following local-change: 

Since the harness and JavaScript are available, customize the script to expand the dynamic layout.

Add the below code in the harness_print.js to expand the work area case details:


// Changes to be done var collapsedDivs = document.getElementsByClassName("collapsible Collapsed"); for (i = 0; i < collapsedDivs.length; i++) { collapsedDivs[i].childNodes[0].click(); } // Changes ends*
Suggest Edit

Published 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