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

pyAttachmentFeedDescription does not display properly

SA-50843

Summary



User wants to display only “File” in “Attachments” section.
So, they saved as “pyCaseAttachments” section in their work class, and configured “Repeating dynamic layout properties”.

As a result, they were able to display only “File” in Attachments, but “WorkID | File | CreatorName” (pyAttachmentFeedDescription) disappeared.


Error Messages



Not Applicable


Steps to Reproduce



Configure the “Repeating dynamic layout properties” in “pyCaseAttachments” section as described below.
Then, pyAttachmentFeedDescription does not display properly.
  • Source:Data Page
  • Data Page: D_AttachmentsByCategory
  • LinkRefFrom: .pxLockHandle
  • Category:”File”


Root Cause



A software use or operation error.

Resolution



Perform the following local-change steps:

1. Do a private edit of pyAttachmentFeedDescription and add the below code to get ID.
<% String CaseID = tools.getPrimaryPage().getString(".pxLinkedRefFrom ");
CaseID = CaseID.substring(CaseID.lastIndexOf(" "), CaseID.length());
%>

2. Replace:

<%if(tools.getPrimaryPage().getParentPage()!=null){%><%=StringUtils.crossScriptingFilter("" +tools.getPrimaryPage().getParentPage().getString("pyID"))%><%}%>

with <%=StringUtils.crossScriptingFilter("" +CaseID)%>


3. Do a private edit of D_AttachmentsByCaterory.
4. Add pyGetAllAttachments in Post Load Processing. And select the checkbox(Pass current parameter page).
5. Test the use case.
6. Save these checkout rules in your application ruleset.


Published April 13, 2018 - Updated October 8, 2020

Was this useful?

0% found this useful

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

Want to help us improve this content?

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