CA Service Management

  • 1.  Configuration Item Relationship List Search Filter modification

    Posted Aug 14, 2017 09:44 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 not scratching my head because I thought I had the attribute name correct (see above).

     

    CA SDM 12.9



  • 2.  Re: Configuration Item Relationship List Search Filter modification

    Posted Aug 14, 2017 10:39 AM

    Hi Marc,

    When you say "didnt look like it was published" - what do you mean by that?    In my 14.1.03 environment, I am able to pull that form up in WSP and I can add fields etc.

    Jon



  • 3.  Re: Configuration Item Relationship List Search Filter modification

    Posted Aug 14, 2017 03:01 PM

    Doesn't published webforms have a * next to its file name, which means it is not being used?



  • 4.  Re: Configuration Item Relationship List Search Filter modification
    Best Answer

    Posted Aug 14, 2017 03:02 PM

    No I believe the ones with the  " * " means that they have been customized and exist in Site\Mods



  • 5.  Re: Configuration Item Relationship List Search Filter modification

    Posted Aug 16, 2017 02:16 PM

    Ok. It did work. I apologize for the confusion. There's a lot of lines in the actual htmpl code than what WSP shows (lines like "<PDM_MACRO name=sfEnd>" or "</script>"), which would actually be useful. This issue makes it hard to use WSP. Just my 2 cents.



  • 6.  Re: Configuration Item Relationship List Search Filter modification

    Posted Aug 16, 2017 03:19 PM

    Jon_Israel, I modified my initial post. I'm having issues with the attributes.