AnsweredAssumed Answered

List Number of Attachments in list_cr

Question asked by diegolimabsb on Sep 11, 2017
Latest reply on Oct 2, 2017 by jmayer

Hey, guys!


By request of my customer I insert in the list_cr a column to inform the number of attachments of each ticket using the following line:


<PDM_MACRO name=lsCol hdr="Attachments " attr=attachments display_attr=length export_hdr_default="$args.&{attr}.DISPLAY_NAME" startrow="no">


In principle worked without problems, only after some tests I realized that this information is not always displayed correctly, often the ticket has an attachment and this value is not displayed in this list.



Another problem is that, even if it is a "numeric" field, when i try to sorts these values in list_cr the tickets are not sorted.


I figured I might solve my client's request by creating something in schema design, maybe an LREL attribute pointing to the attachment factory...


Did any of you ever have to do something like that?[


Many thanx!!