CA Service Management

  • 1.  Configuration Item Relationship List - adding host name in search

    Posted Aug 18, 2017 10:32 AM

    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 scratching my head because I thought I had the attribute name correct (see above). Can anyone see the problem with the code?

     

    CA SDM 12.9



  • 2.  Re: Configuration Item Relationship List - adding host name in search

    Posted Aug 18, 2017 11:33 AM

    Hmm. if you want to be able to search for a hostnames, you might add just search textboxes:

     

    <PDM_MACRO name=sfTextbox hdr="Provider Host Name" attr="parent.system_name">
    <PDM_MACRO name=sfTextbox hdr="Child Host Name" attr="child.system_name">

     

    I think its not that easy to bring a sfLookup search field to the behaviour, that it uses system_name instaed of name as its own lookup criteria....

     

    Kind regards

    .............Michael

     

     

     



  • 3.  Re: Configuration Item Relationship List - adding host name in search

    Posted Aug 21, 2017 09:39 AM

    It doesn't help with creating a search box for the host name, but the suggestion above is still helpful regardless. Thanks!