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());
%>
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
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.