Difference between revisions of "Attachments on Configuration Items"
m |
m |
||
| Line 9: | Line 9: | ||
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. | 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. | ||
<source lang="text">LREL attmnt_lrel "nr:PDM" attachments <> attmnt assets;</source> | <source lang="text">LREL attmnt_lrel "nr:PDM" attachments <> attmnt assets;</source> | ||
| + | |||
== Step 2. Publish the Schema changes == | == Step 2. Publish the Schema changes == | ||
| Line 19: | Line 20: | ||
| − | == Step 4. Clear the web cache == | + | == 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. Search for the following scripting:<source lang="javascript">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; | ||
| + | }</source>... and add the following case:<source lang="javascript"> | ||
| + | case "nr": attmntAccess = "${ACCESS.inventory:0}" - 0; break;</source> | ||
| + | |||
| + | |||
| + | == Step 5. Clear the web cache == | ||
Publish your changes via the [[Web Screen Painter]]. The process of publishing automatically initiates a [[pdm_webcache]]. | Publish your changes via the [[Web Screen Painter]]. The process of publishing automatically initiates a [[pdm_webcache]]. | ||
Revision as of 16:29, 9 June 2008
This article provides instructions for adding attachment capabilities to Configuration Items.
Note: This customization is designed for r11.x versions only.
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
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. <source lang="text">LREL attmnt_lrel "nr:PDM" attachments <> attmnt assets;</source>
Step 2. Publish the Schema changes
For ALL releases recycle the Service Desk service.
Step 3. Edit the detail_nr.htmpl form
Add the following code to the BODY of the form in the PDM_NOTEBOOK area: <source lang="html4strict"><PDM_TAB ID=attmnt SRC="OP=SHOW_DETAIL+HTMPL=xx_attmnt_tab.htmpl+FACTORY=nr+PERSID=$args.persistent_id" NAME="Attachments" height=300></pdm_tab></source>
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. Search for the following scripting:<source lang="javascript">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;
}</source>... and add the following case:<source lang="javascript">
case "nr": attmntAccess = "${ACCESS.inventory:0}" - 0; break;</source>
Step 5. Clear the web cache
Publish your changes via the Web Screen Painter. The process of publishing automatically initiates a pdm_webcache.
To discuss or ask questions about this article, select the discussion tab above.