I'd like to add host name for both provider and dependent in the Configuration Item Relationship list search filter:
When I modified the htmpl and added the following lines (see red font below):
<PDM_IF "$UserAuth" != "" && $UserAuth \> 1 >
<PDM_MACRO name=sfStart create=true extracreateurl=$args.extra_create_URL factory="bmhier">
<PDM_ELSE>
<PDM_MACRO name=sfStart factory="bmhier">
</PDM_IF>
docWriteln('<input type="hidden" name="QBE.GE.id" value="0">');
<PDM_MACRO name=sfStartRow>
<PDM_IF "$env.NX_CMDB" != "">
<PDM_MACRO name=sfLookup hdr="Provider CI" attr="parent">
<PDM_ELSE>
<PDM_MACRO name=sfLookup hdr="Parent CI" attr="parent">
</PDM_IF>
<PDM_IF "$env.NX_CMDB" != "" >
<PDM_MACRO name=sfLookup hdr="Relationship Type" attr="ci_rel_type">
</PDM_IF>
<PDM_IF "$env.NX_CMDB" != "">
<PDM_MACRO name=sfLookup hdr="Dependent CI" attr="child">
<PDM_ELSE>
<PDM_MACRO name=sfLookup hdr="Child CI" attr="child">
</PDM_IF>
<PDM_MACRO name=sfStartRow>
<PDM_IF "$env.NX_CMDB" != "">
<PDM_MACRO name=sfLookup hdr="Provider Host Name" attr="parent.system_name">
<PDM_MACRO name=sfLookup hdr="Child Host Name" attr="child.system_name">
</PDM_IF>
<PDM_MACRO name=sfStartRow>
<PDM_IF "$env.NX_CMDB" != "">
<PDM_ELSE>
<PDM_MACRO name=sfTextbox hdr="Description" attr="description" size=20>
</PDM_IF>
<PDM_MACRO name=sfTextbox hdr="Symbol" attr="sym" size=20>
<PDM_IF "$env.NX_CMDB" != "">
<PDM_MACRO name=sfDropdown hdr="Provider CI Active?" attr=parent.delete_flag>
<PDM_MACRO name=sfDropdown hdr="Relationship Active?" attr=delete_flag>
<PDM_MACRO name=sfDropdown hdr="Dependent CI Active?" attr=child.delete_flag>
</PDM_IF>
This produced the following page:
But.. when you click on to search for either "Provider Host Name" or "Child Host Name", it goes straight to "Incident List". I'm not scratching my head because I thought I had the attribute name correct (see above).
CA SDM 12.9