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

Activity in Defer Load behaves incorrectly

SA-20592

Summary



In a collapsible section there is a retrieve activity in defer load which is used to fetch some data . Firing this activity multiple times, an error occurs.


Error Messages



Work object not available on clipboard, please try again


Steps to Reproduce



1. Create a section(section A), with double click-Expand/Collapse Action on the Grid.
2. Configure another section(section B), which will display the Data of seleted Grid record .
3. In section B, include any section with Defer load configuration.
4. Run the parent section which contains both Section A and B, and double click on Grid record.

Root Cause



An issue in the custom application code or rules: The issue is occurring because of Expand/Collapse Action on the Grid. Because of this the particular TD on which event was triggered is adding isExpanded attribute to true.

Resolution



Perform the following local-change: Add a Run Script Action on the Grid which will remove the isExpanded attribute. Add the function in any Harness level JS file or in UserWorkForm.

<script>
pega.u.d.KeepPageMessages = "true" ;
function resetExpandedFlag(ev){
var targetEle = pega.util.Event.getTarget(ev);
if(targetEle && targetEle.getAttribute("isExpanded")){
targetEle.removeAttribute("isExpanded");
}
}
</script>
Suggest Edit

Published March 5, 2016 - Updated October 8, 2020

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