CA Service Management

  • 1.  List Number of Attachments in list_cr

    Posted 09-11-2017 10:24 AM

    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!!



  • 2.  Re: List Number of Attachments in list_cr

    Broadcom Employee
    Posted 09-27-2017 04:01 PM

    Hi folks,

     

    Any suggestions for Diego on this item?

     

    thx

    _R



  • 3.  Re: List Number of Attachments in list_cr

    Broadcom Employee
    Posted 09-28-2017 02:24 PM

    you may give to try by adding "sort=yes" to the macro.



  • 4.  Re: List Number of Attachments in list_cr

    Posted 09-28-2017 03:28 PM

    Hi Chi_Chen!

     

    Many thanks for your answer

     

    I added your suggestion to lscol but unfortunately I still can not sort the column by the values.



  • 5.  Re: List Number of Attachments in list_cr

    Broadcom Employee
    Posted 09-29-2017 11:21 AM

    Diego, it is display_attr...I am not sure you can sort the display_attr. You would need way more customization. Thanks _Chi

     


  • 6.  Re: List Number of Attachments in list_cr

    Posted 10-02-2017 03:19 AM

    Hi,

    did you tried using different approach like fmtfunc and your code?

    Then you have better control on the data to display.

    /J