SDU
Personal tools

Attachments on Contacts

From SDU

Jump to: navigation, search
To make corrections or additions to this article, select the edit tab above.
To discuss or ask questions about this article, select the discussion tab above.

Overview

This article provides instructions for adding attachment capabilities to Contacts.

Note: This customization is designed for r11.x versions only.

Procedures

Step 1. Modify Schema

For ALL releases make your schema change by creating a .mod file and placing it in the $NX_ROOT/site/mods/majic directory. Name the .mod anything you like, but it is recommended that it be preceded with a 'z'. Take the code you need from the examples below.

LREL attmnt_lrel "cnt:PDM" attachments <> attmnt assets;

Step 2. Publish the Schema changes

For ALL releases recycle the Service Desk service.

Step 3. Edit the detail_cnt.htmpl form

Add the following code to the BODY of the form in the PDM_NOTEBOOK area:

<PDM_TAB ID=attmnt SRC="OP=SHOW_DETAIL+HTMPL=xx_attmnt_tab.htmpl+FACTORY=cnt+PERSID=$args.persistent_id" NAME="Attachments"  height=300></pdm_tab>

Step 4. Edit the xx_attmnt_tab.htmpl form

This step will add "Edit" and "Delete" right-click options if the Inventory Functional Access is granted on the user's Access Type. If this scripting is not added then you will only have the option to view a document.

Search for the following scripting:
switch ("$prop.factory") {
   case "cr":  attmntAccess = "${ACCESS.call_mgr:0}" - 0; break;
   case "iss": attmntAccess = "${ACCESS.issue_mgr:0}" - 0; break;
   case "chg": attmntAccess = "${ACCESS.change_mgr:0}" - 0; break;
}
... and add the following case:
case "cnt": attmntAccess = "${ACCESS.inventory:0}" - 0; break;

Step 5. Clear the web cache

Publish your changes via the Web Screen Painter. The process of publishing automatically initiates a pdm_webcache.

NOTICE

Be advised that implementing this customization will result in a few ERRORS in the stdlogs, but there has been no reported degradation in functionality.

kt_daemon          5312 ERROR        DomWrap.c       1162 cSelect: failed In method select_sd_ref_num. Error Message: Error 103 AHD03053: Bad where clause: invalid constraint.  Could not recognize persistent_id.  OUTER_JOIN ca_contact.id = usp_contact.id
kt_daemon          5312 ERROR        DomWrap.c        809 Failed to complete reply method: 'select_sd_ref_num' ,BOP Name:'attmnt:400071' in class:'CAttmntLinks', Error:AHD03053: Bad where clause: invalid constraint.  Could not recognize persistent_id.  OUTER_JOIN ca_contact.id = usp_contact.id
domsrvr            6020 ERROR        attr.c          6164 Error in ATTR_INIT trigger get_attached_name for attached_name: AHD03053: Bad where clause: invalid constraint.  Could not recognize persistent_id.  OUTER_JOIN ca_contact.id = usp_contact.id
This page was last modified 02:08, 9 January 2009.  This page has been accessed 1,599 times.  Content is available under Attribution-Noncommercial-Share Alike 3.0 UnportedDisclaimers