How to remove the delete-icon from Catalog Request

Document ID : KB000117930
Last Modified Date : 29/01/2019
Show Technical Document Details
Introduction:
How to remove the delete-icon from Catalog Request
To avoid attachments to be deleted by users.
 
Question:
Is there any chance to disable the delete button for attachments under Requests?
Environment:
Windows.
Answer:
IMPORTANT NOTE: Please check the below document, before you start customizing your environment.
Holding a prereq procedure for a best control over your customization.
KB000125335
https://comm.support.ca.com/kb/important-notice-of-prereq-for-customization-on-ca-service-catalog-files/KB000125335

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}">
                    <content>
                      <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" />
                    </content>
                  </link>
                  <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;','')}">
                    <content>
                      <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"/>
                    </content>
                  </link>
                  </xsl:if>
          -->
                  </panel>
 
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 possibly, future patches/updates etc, can or will overwrite this customization.
Again, check the below document, before you start customizing your environment.
Holding a prereq procedure for a best control over your customization.
KB000125335
https://comm.support.ca.com/kb/important-notice-of-prereq-for-customization-on-ca-service-catalog-files/KB000125335