Question

2
Replies
396
Views
rishabhj0256 Member since 2016 4 posts
jktechnosoft
Posted: 2 years ago
Last activity: 2 years 11 months ago
Closed

Sorting of results in the AttachmentFeedDescriptionEmail Control

Below is the JSP written for AttachmentFeedDescriptionEmail Control :

Current State : Below is the list of contents i can see on UI

  1. Sample_3
  2. Sample_2
  3. Sample_1

Required State: I need below kind of ordered list which is default if we use Grid layout , but i need to customize the AttachmentFeedDescriptionEmail Control for our specific need

  1. Sample_1
  2. Sample_2
  3. Sample_3

JSP code for that Control :

<% String subCase=tools.getParamValue("includeSubCaseAttachments");%>
<% if(subCase=="true")
{
String clsName = tools.getPrimaryPage().getString("pyClassName");
String note="";
if(clsName.equalsIgnoreCase("Data-WorkAttach-Note")){
note=tools.getPrimaryPage().getString("pyLabel");
tools.getPrimaryPage().putString("pyNote",note);
}
%>
<a class="Strong" title='<p:r n=".pyNote" m="normal"/>' href="#" onclick="pega.ui.HarnessActions.doAttachmentSingleClick('<p:r n=".pxListSubscript" />', '<p:r n=".pxObjClass" />',
'<p:r n=".pxInsName" />', '<p:r n=".pzInsKey" />', null, null)">
<pega:reference name=".pyNote" mode="display" format="pzCMEllipsis"><pega:param name="CharLength" value="25"/>
</pega:reference></nobr></a> (<p:r n='.pyID' m='normal'/>) <pega:lookup property=".pyCaption" value="" /> <%=StringUtils.crossScriptingFilter(""+tools.getPrimaryPage().getString("pxCreateOpName")) %>
<%
}
else
{
%>
<a class="Strong" title='<p:r n=".pyAttachmentContent.pyNote" m="normal"/>' href="#" onclick="pega.ui.HarnessActions.doAttachmentSingleClick('<p:r n=".pxListSubscript" />',
'<p:r n=".pxObjClass" />', '<p:r n=".pyAttachmentContent.pxInsName" />', '<p:r n=".pzInsKey" />', null, null)">
<pega:reference name=".pyAttachmentContent.pyNote" mode="display" format="pzCMEllipsis"><pega:param name="CharLength" value="25"/>
</pega:reference></nobr></a> <pega:lookup property=".pyCaption" value="" />
<% } %>
Low-Code App Development Dev/Designer Studio Data Integration Java and Activities Case Management System Administration
Moderation Team has archived post
Share this page LinkedIn