<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://greggsmith.net/wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Jlent01</id>
		<title>SDU - User contributions [en]</title>
		<link rel="self" type="application/atom+xml" href="http://greggsmith.net/wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Jlent01"/>
		<link rel="alternate" type="text/html" href="http://greggsmith.net/wiki/index.php?title=Special:Contributions/Jlent01"/>
		<updated>2026-07-27T11:39:12Z</updated>
		<subtitle>User contributions</subtitle>
		<generator>MediaWiki 1.26.1</generator>

	<entry>
		<id>http://greggsmith.net/wiki/index.php?title=Attachments_on_Configuration_Items&amp;diff=4027</id>
		<title>Attachments on Configuration Items</title>
		<link rel="alternate" type="text/html" href="http://greggsmith.net/wiki/index.php?title=Attachments_on_Configuration_Items&amp;diff=4027"/>
				<updated>2010-02-24T17:28:45Z</updated>
		
		<summary type="html">&lt;p&gt;Jlent01: /* Step 3. Edit the detail_nr.htmpl form */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
[[Category:Configuration Items]]&lt;br /&gt;
[[Category:Customizations]]&lt;br /&gt;
[[Category:r11]]&lt;br /&gt;
{{Global Header}}&lt;br /&gt;
{{Global Announcement}}&lt;br /&gt;
&lt;br /&gt;
== Overview ==&lt;br /&gt;
This article provides instructions for adding attachment capabilities to Configuration Items.&lt;br /&gt;
&lt;br /&gt;
''Note: This customization is designed for r11.x versions only.''&lt;br /&gt;
&lt;br /&gt;
== Procedures ==&lt;br /&gt;
=== Step 1. Modify Schema ===&lt;br /&gt;
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 file|.mod]] anything you like, but it is recommended that it be preceded with a 'z'. Take the code you need from the examples below.&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;LREL attmnt_lrel &amp;quot;nr:PDM&amp;quot; attachments &amp;lt;&amp;gt; attmnt assets;&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Step 2. Publish the Schema changes ===&lt;br /&gt;
For ALL releases recycle the Service Desk service.&lt;br /&gt;
&lt;br /&gt;
=== Step 3. Edit the detail_nr.htmpl form ===&lt;br /&gt;
Add the following code to the BODY of the form in the PDM_NOTEBOOK area (for R12 this modification can be made to cmdbNotebook.htmpl):&lt;br /&gt;
&amp;lt;source lang=&amp;quot;html4strict&amp;quot;&amp;gt;&amp;lt;PDM_TAB ID=attmnt SRC=&amp;quot;OP=SHOW_DETAIL+HTMPL=xx_attmnt_tab.htmpl+FACTORY=nr+PERSID=$args.persistent_id&amp;quot; NAME=&amp;quot;Attachments&amp;quot;  height=300&amp;gt;&amp;lt;/pdm_tab&amp;gt;&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Step 4. Edit the xx_attmnt_tab.htmpl form ===&lt;br /&gt;
This step will add &amp;quot;Edit&amp;quot; and &amp;quot;Delete&amp;quot; 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. &lt;br /&gt;
Search for the following scripting:&amp;lt;source lang=&amp;quot;javascript&amp;quot;&amp;gt;switch (&amp;quot;$prop.factory&amp;quot;) {&lt;br /&gt;
   case &amp;quot;cr&amp;quot;:  attmntAccess = &amp;quot;${ACCESS.call_mgr:0}&amp;quot; - 0; break;&lt;br /&gt;
   case &amp;quot;iss&amp;quot;: attmntAccess = &amp;quot;${ACCESS.issue_mgr:0}&amp;quot; - 0; break;&lt;br /&gt;
   case &amp;quot;chg&amp;quot;: attmntAccess = &amp;quot;${ACCESS.change_mgr:0}&amp;quot; - 0; break;&lt;br /&gt;
}&amp;lt;/source&amp;gt;... and add the following case:&amp;lt;source lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
   case &amp;quot;nr&amp;quot;: attmntAccess = &amp;quot;${ACCESS.inventory:0}&amp;quot; - 0; break;&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Step 5. Clear the web cache ===&lt;br /&gt;
Publish your changes via the [[Web Screen Painter]]. The process of publishing automatically initiates a [[pdm_webcache]].&lt;br /&gt;
&lt;br /&gt;
== NOTICE ==&lt;br /&gt;
Be advised that implementing this customization will result in a few ERRORS in the stdlogs, but there has been no reported degradation in functionality.&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;kt_daemon         16316 ERROR        DomWrap.c       1106 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_owned_resource.id = usp_owned_resource.id&lt;br /&gt;
kt_daemon         16316 ERROR        DomWrap.c        806 Failed to complete reply method: 'select_sd_ref_num' ,BOP Name:'attmnt:400063' in class:'CAttmntLinks', Error:AHD03053: Bad where clause: invalid constraint.  Could not recognize persistent_id.  OUTER_JOIN ca_owned_resource.id = usp_owned_resource.id&lt;br /&gt;
domsrvr           13132 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_owned_resource.id = usp_owned_resource.id&amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>Jlent01</name></author>	</entry>

	<entry>
		<id>http://greggsmith.net/wiki/index.php?title=Attachments_on_Configuration_Items&amp;diff=4026</id>
		<title>Attachments on Configuration Items</title>
		<link rel="alternate" type="text/html" href="http://greggsmith.net/wiki/index.php?title=Attachments_on_Configuration_Items&amp;diff=4026"/>
				<updated>2010-02-24T17:28:21Z</updated>
		
		<summary type="html">&lt;p&gt;Jlent01: /* Step 3. Edit the detail_nr.htmpl form */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
[[Category:Configuration Items]]&lt;br /&gt;
[[Category:Customizations]]&lt;br /&gt;
[[Category:r11]]&lt;br /&gt;
{{Global Header}}&lt;br /&gt;
{{Global Announcement}}&lt;br /&gt;
&lt;br /&gt;
== Overview ==&lt;br /&gt;
This article provides instructions for adding attachment capabilities to Configuration Items.&lt;br /&gt;
&lt;br /&gt;
''Note: This customization is designed for r11.x versions only.''&lt;br /&gt;
&lt;br /&gt;
== Procedures ==&lt;br /&gt;
=== Step 1. Modify Schema ===&lt;br /&gt;
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 file|.mod]] anything you like, but it is recommended that it be preceded with a 'z'. Take the code you need from the examples below.&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;LREL attmnt_lrel &amp;quot;nr:PDM&amp;quot; attachments &amp;lt;&amp;gt; attmnt assets;&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Step 2. Publish the Schema changes ===&lt;br /&gt;
For ALL releases recycle the Service Desk service.&lt;br /&gt;
&lt;br /&gt;
=== Step 3. Edit the detail_nr.htmpl form ===&lt;br /&gt;
Add the following code to the BODY of the form in the PDM_NOTEBOOK area (for R12 this modification can be made to cmdbNotebood.htmpl):&lt;br /&gt;
&amp;lt;source lang=&amp;quot;html4strict&amp;quot;&amp;gt;&amp;lt;PDM_TAB ID=attmnt SRC=&amp;quot;OP=SHOW_DETAIL+HTMPL=xx_attmnt_tab.htmpl+FACTORY=nr+PERSID=$args.persistent_id&amp;quot; NAME=&amp;quot;Attachments&amp;quot;  height=300&amp;gt;&amp;lt;/pdm_tab&amp;gt;&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Step 4. Edit the xx_attmnt_tab.htmpl form ===&lt;br /&gt;
This step will add &amp;quot;Edit&amp;quot; and &amp;quot;Delete&amp;quot; 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. &lt;br /&gt;
Search for the following scripting:&amp;lt;source lang=&amp;quot;javascript&amp;quot;&amp;gt;switch (&amp;quot;$prop.factory&amp;quot;) {&lt;br /&gt;
   case &amp;quot;cr&amp;quot;:  attmntAccess = &amp;quot;${ACCESS.call_mgr:0}&amp;quot; - 0; break;&lt;br /&gt;
   case &amp;quot;iss&amp;quot;: attmntAccess = &amp;quot;${ACCESS.issue_mgr:0}&amp;quot; - 0; break;&lt;br /&gt;
   case &amp;quot;chg&amp;quot;: attmntAccess = &amp;quot;${ACCESS.change_mgr:0}&amp;quot; - 0; break;&lt;br /&gt;
}&amp;lt;/source&amp;gt;... and add the following case:&amp;lt;source lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
   case &amp;quot;nr&amp;quot;: attmntAccess = &amp;quot;${ACCESS.inventory:0}&amp;quot; - 0; break;&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Step 5. Clear the web cache ===&lt;br /&gt;
Publish your changes via the [[Web Screen Painter]]. The process of publishing automatically initiates a [[pdm_webcache]].&lt;br /&gt;
&lt;br /&gt;
== NOTICE ==&lt;br /&gt;
Be advised that implementing this customization will result in a few ERRORS in the stdlogs, but there has been no reported degradation in functionality.&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;kt_daemon         16316 ERROR        DomWrap.c       1106 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_owned_resource.id = usp_owned_resource.id&lt;br /&gt;
kt_daemon         16316 ERROR        DomWrap.c        806 Failed to complete reply method: 'select_sd_ref_num' ,BOP Name:'attmnt:400063' in class:'CAttmntLinks', Error:AHD03053: Bad where clause: invalid constraint.  Could not recognize persistent_id.  OUTER_JOIN ca_owned_resource.id = usp_owned_resource.id&lt;br /&gt;
domsrvr           13132 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_owned_resource.id = usp_owned_resource.id&amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>Jlent01</name></author>	</entry>

	</feed>