Question & Answer
Question
How can I prevent users from deleting Attached Documents
Answer
1.In Application Designer, from the Select Action select Add/Modify Signature Options.
Create a new signature option for the application(s) for which you wish to secure elements of the dialog – for example ‘ATTACHDEL’ with the description ‘Delete Attached Documents’.
2. From the Select Action menu, select the Export System XML options and select the LIBRARY.XML.
3. Create a backup copy of the XML file. Open LIBRARY.XML file using a text editor.
4. Find the ‘View Attachments’ dialog definition. (Search for viewattachments, the id of the dialog).
In the line:
<tablecol filterable="false" hidden="false" id="viewattachments_table_tablebody_8" mxevent="instantdelete" mxevent_desc="Delete Row" mxevent_icon="btn_delete.gif" sortable="false" type="event"/>
Add sigoption= “ATTACHDEL“ so that the end result is:
<tablecol filterable="false" hidden="false" id="viewattachments_table_tablebody_8" mxevent="instantdelete" mxevent_desc="Delete Row" mxevent_icon="btn_delete.gif" sortable="false" type="event" sigoption= “ATTACHDEL“/>
5. Save the XML file.
6. In Application Designer, select the ‘Import Application Definition’ toolbar button.
7. Browse to import the library.xml you modified.
Each application for which you created a signature option should now allow you to grant it to security groups. A user in a group that has the option will see the trash can icon in the Attached Documents dialog within the appropriate applications and a user in a group that does not have the option will not see the trash can icon. If you do not create the ‘ATTACHDEL’ signature option for an application, the delete icon will always show.
As with all application options in version 7, access to this option can also be granted conditionally
Was this topic helpful?
Document Information
Modified date:
17 June 2018
UID
swg21447599