My users do not want to see pyCaseAssets in the pyCaseBody unless they want to (they want to click something to bring it into view), and it's currently in a two-column main-sidebar column layout, so I was trying to find a way to make the column collapsible with no luck. I've tried putting all of the contents of pyCaseBody into a Harness, however it messes up all of the rendering (and pega practice is to only have harnesses at the portal layer). I've also looked this up a lot on the pdn with no leads...
Is there any way to get this collapsible functionality working WITHOUT a harness or panels?
You can enable header for the layout and select header type as collapsible and do not expand it onload. Anyways you might have already overriden the pyCaseAssets section rt. So you can create a dummy section and include all the widgets (like attachments, work parties, notes etc.. other than the assignments widget as it is primary action) collapse this section (Layout) by default. 2 benefits:
Your requirement fullfills
If you say defer load contents then contents of these widgets dont load untill users expand so so the time taken to load the page reduces. Helps in preventing any Pega 001 (Threshold exceeds 1 sec) alert!
Thanks for the answer. Unfortunately, I'm more looking for the "expand/collapse" functionality found within panels on harnesses (think the Live UI expand/collapse functionality). The headers allow for a header to be shown horizontally and they click it and it expands.
the approach mentioned above is the possible OOTB solution without you to modify a lot of code neither it would require lot of research outside of Pega. But if you still want to go for a 'perfect' solution and not rely on the available solutions / approach in pega- you can write a custom HTML, probably use a script to create a similar expand colapse in the HTML form in a section rule (non-auto generated code). this can provide an alternative solution.
But given the latest changes in pega skin and css this custom code may interfere with the over all look and feel of the screen. I would also like to know even if you want a expand/collapse solution you would need to have at least a "+" sign to show the section if the user wants/ what will be difference between showing the header with collapsed form and a "+".