CA Service Management

Question about query in TAB with lrel

  • 1.  Question about query in TAB with lrel

    Posted 12-02-2019 12:05 PM
    Hi, I have aproblem with the pdm_macro name=TAB.....
    I created a lrel to attache CIs to a CR.
    my definitions:
    #// Factory: zlrel_cr_nr
    OBJECT zlrel_cr_nr {
    ATTRIBUTES zlrel_cr_nr {
    cr SREL cr REQUIRED;
    nr SREL nr REQUIRED;#
    #OBJECT cr {
    ATTRIBUTES Call_Req {
    znrs BREL zlrel_cr_nr cr { LREL nr; };
    };
    };

    OBJECT nr {
    ATTRIBUTES ca_owned_resource {
    zcrs BREL zlrel_cr_nr nr { LREL cr; };
    };
    };#
    I have in detail_in.htmpl:#
    <PDM_MACRO name=TAB title="assigned CIs" height=300 src="OP=SEARCH+FACTORY=zlrel_cr_nr+QBE.EQ.cr=$dob.persistent_id+KEEP.cr_persid=$dob.persistent_id">#
    and in list_zlrel_cr_nr.htmpl:#
    <PDM_MACRO name=lsCol hdr="PrimKey" attr=nr.name exportFmt=ShowLink link=yes startrow="no">#
    How to change the query in detail_in.htmpl that you use the factory nr instead of zlrel_cr_nr?
    I would like to use the already existing list_nr.htmpl and use the link to call detail_nr.htmpl.
    Can someone help me?
    Regards


    ​​​​​​​​​