Parent Child CI tab.

Idea created by pooja_joshi_727 on Dec 18, 2013
    Not planned
    Score1
    • tomgilliver

    On any Ci detail Page, if the detail page does not belong to any Extension
    table, then Parent tab and Child tab come up differently but if it belongs to
    any extension table then, we get this under "Relationship tab". On our
    further analysis in code for the same, we found that there were two separate
    PDM_IFs to check if extension is present or not as stated in code below:
    "<PDM_IF "$Extension" == "">
    <PDM_IF 0>Only show Child/Parent tabs if CI does not use an extension
    table</PDM_IF>
    <PDM_IF "$args.id" == "0" >
    <PDM_MACRO NAME = TAB title="Child CIs" ID=rel_child_hier
    SRC="$args.empty_tab_url=Related Child Configuration Items List" h
    eight=$args.empty_tab_height>
    <PDM_MACRO NAME = TAB title="Parent CIs" ID=rel_parent_hier
    SRC="$args.empty_tab_url=Related Parent Configuration Item" heigh
    t=$args.empty_tab_height>
    <PDM_ELSE>
    <script type="text/javascript">var nr_name = nx_escape('<PDM_FMT PAD=NO
    ESC_STYLE=C>$args.name</PDM_FMT>');</script>
    <PDM_SET args.nr_name=""+nr_name+"">
    <PDM_MACRO NAME = TAB title="Child CIs" ID=rel_child_hier
    SRC="OP=SEARCH+HTMPL=list_child_hier.htmpl+FACTORY=hier+KEEP.NR_PE
    RSID=$args.persistent_id+KEEP.NR_name=$args.nr_name+QBE.EQ.delete_flag=0+QBE.E
    Q.parent=$args.id" height=300>
    <PDM_MACRO NAME = TAB title="Parent CIs" ID=rel_parent_hier
    SRC="OP=SEARCH+HTMPL=list_parent_hier.htmpl+FACTORY=hier+KEEP.NR_
    PERSID=$args.persistent_id+KEEP.NR_name=$args.nr_name+QBE.EQ.delete_flag=0+QBE
    .EQ.child=$args.id" height=300>
    </PDM_IF>
    </PDM_IF>"

    So here else part still contains Parent child tab, can you please rectify this issue.

    Kindly look into it.