Support Article
Recent work gadget in work object does not render correctly
Summary
A Recent work gadget in a work object does not render correctly.
Error Messages
Problem invoking function: pega_processengine_workutilities.pzHasAccessToWorkPool--(String), Undefined class "undefined"
Steps to Reproduce
Click the case from the Recent list.
Root Cause
An issue in the custom application code or rules.
Resolution
Perform the following local-change:
- Replace the 'Recent work gadget' with the pyRecents section.
- In the pyRecentsWorkContent section, configure the pyRecordID with 'Close work by handle', 'Run script', and 'Refresh other section' actions.
- In the 'Run Script' action, invoke the 'RefreshRecents' custom function. Add the 'RefreshRecents' function in UserWorkForm and in 'the RefreshRecents' function add the below code.
<script>
function RefreshRecents(){
pega.u.d.refreshSection("pyRecents","","");
}
</script>
4. Add the below CSS in the UserWorkForm for the Recent section appearance changes.<style>
div[node_name='pyRecentWorkContent'] .layout-body.clearfix {
padding: 0px;
padding-top: 2px;
padding-left: 5px;
bottom: 0px !important;
max-height: 30px !important;
}
</style>
Published December 27, 2018 - Updated December 2, 2021
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.