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
- Configure collapsible layouts in the section.
- 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*
Published December 2, 2021
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.