How to remove the delete-icon from Catalog Request

Document ID : KB000117930
Last Modified Date : 22/10/2018
Show Technical Document Details
How to remove the delete-icon from Catalog Request
To avoid attachments to be deleted by users.
Is there any chance to disable the delete button for attachments under Requests?
Windows 2012, SQL 2014
Please consider the following.
1. Browse into folder C:\Program Files\CA\Service Catalog\view\webapps\usm\explorer\request
2a. Copy file request_attachment_list.xsl into folder
2b. C:\Program Files\CA\Service Catalog\filestore\custom\explorer\request
3. Browse into folder C:\Program Files\CA\Service Catalog\filestore\custom\explorer\request
4a. Edit/Open (with notepad) request_attachment_list.xsl
4b. Search for delete (around line 70)
4c. Put the comment lines as shown below, after <panel and before </panel:
                  <panel id="attachment_actions_celldiv{asset_id/LITERAL}">
                  <xsl:if test="$extlink=0">
                  <link type="default" id="attachment_delete{asset_id/LITERAL}" 
                    title="{$xslcontent/delete_attachment}" data-attachment-id="{asset_id/LITERAL}">
                      <image class="service-icon img-action" src="images/delete.png" title="{$xslcontent/delete_attachment}" alt="{$xslcontent/delete_attachment}" id="attachment_delete{asset_id/LITERAL}" tabindex="0" role="button" />
                  <link type="default" id="attachment_edit{asset_id/LITERAL}" 
                    title="{$xslcontent/edit_attachment}" data-attachment-id="{asset_id/LITERAL}" data-attachment-full-name="{file_name/LITERAL}"
                    data-name="{$filename}" data-description="{translate(description/LITERAL,'&#13;','')}">
                      <image class="service-icon img-action" src="images/tb_edit.png" data-attachment-id="{asset_id/LITERAL}" data-attachment-full-name="{file_name/LITERAL}"
                        data-name="{$filename}" data-description="{translate(description/LITERAL,'&#13;','')}" title="{$xslcontent/edit_attachment}" alt="{$xslcontent/edit_attachment}" id="attachment_edit{asset_id/LITERAL}" tabindex="0" role="button"/>
4d. Save the file
5 Stop the CA Service Catalog services(Accounting and Catalog).
6 Empty/clear the %USM_HOME%\view\translets folder.
7 (re)move the %USM_HOME%\logs\*.log files.
8 Clear the browser-cache.
9 Start the CA Service Catalog services(Accounting and Catalog).
> Especially, steps 6 and 8 are important.
Additional Information:
It appears to be possible to not show the 'delete' icon/function on attachments.
However, this will be your local customization, and not officially supported.
Which means that ppossibly, future patches/updates etc, can or will overwrite this customization.