I have requirement Summary Panel needs to be collapsed by default instead of expand, Please suggest anyone worked on similar requirement
Thank you
Praveen Kusuma
I have requirement Summary Panel needs to be collapsed by default instead of expand, Please suggest anyone worked on similar requirement
Thank you
Praveen Kusuma
Hi @PKusuma,
Have you taken a look at the response here by @RichardMarsot ?
@PKusuma you can also look at this question Collapse utility panel by default | Support Center
@MarissaRogers no luck
@RichardMarsot this one only for Utility Panel but for Summary Panel is different its not controlled by CSS class like Utility panel
Thank you
@PKusuma collapsed summary panel is not a default configuration - if you need this functionality, create the following non-auto section at work- - this code will be executed on load of the case view and will toggle the summary panel to close it
Then for every case type that you want to see this behavior - you can add this non-auto section to the caseActionHeader.
If you want this behavior for all the case types, resave the CaseActionHeader changes at your workclass (for example Eas-BobsServ-Work-)
@RichardMarsot Thank you so much it works
@RichardMarsot - Hi Richard, Greetings. I was trying the above solution and is working first time when i Create a new work object, but when i create work objects next time, it is expanded by default, it looks like Case Action Header is not refreshed every time? Is that correct? I am trying to have this auto-collapsed for every work object/case that is opened either from Worklist or Recents or from Create new work object. Please advise if this is possible. I am on Pega 8.7.0
Regards,
Bharat
@KOMARINA portal header is not refreshed when opening a case but the case view header is refreshed everytime a case is created - use tracer and to find which stream is reloaded when opening a case.
@RichardMarsot Hi Richard, Greetings. Case View Header is refreshed but it does not collapse the panel automatically if the previous case has this expanded.
Regards,
Bharat
@RichardMarsot - with the above solution, it is collapsed only for one time. My requirement is whenever case is opened, default needed is collapsed. Thankyou
@ahemmadshareef You can try wrapping the OOTB js function toggleSummaryPanel and executing it under certain circumstances. Follow the original steps recommended by Richard but instead use the following code in the CollapseSummaryPanelAsDefault section:
<script>
function customToggleSummaryPanel(event) {
var isCollapsed = document.querySelectorAll('.summary-collapsed').length > 0;
if(isCollapsed){}
else{
pega.desktop.infinity.toggleSummaryPanel(event);
}
};
customToggleSummaryPanel();
</script>