CA Service Management

 View Only
  • 1.  detail_atomic_cond.htmpl form

    Posted Jul 01, 2019 12:31 AM
    Hi,

    With the detail_atomic_cond.htmpl form form the default when in Service Desk is that it presents Attribute Value.  How to I get it to present Data Value as the default.


    <PDM_IF "$args.rval_assoc" != "" || "$args.id" == "0">"Attribute"<PDM_ELIF "$args.rval_assoc" == "" && "$args.id" != "0">"Data Value"</PDM_IF>,
    "Attribute","Attribute","Data Value","Data Value");
    }
    if("$args.lval" !="")
    {
    if("$args.KEEP.obj_type" == "")
    {
    if ("$args.id" == "0")
    {

    <PDM_MACRO name=dtlStartRow>
    <PDM_IF "$args.operator" == "4" || "$args.operator" == "5">
    <PDM_MACRO name=dtlLookup hdr="Attribute Value" attr=rval_assoc extraurl="ADDITIONAL_WHERE=ob_type='$args.owning_macro.ob_type'" size=40>
    <PDM_ELSE>
    <PDM_MACRO name=dtlLookup hdr="Attribute Value" attr=rval_assoc extraurl="ADDITIONAL_WHERE=ob_type='$args.owning_macro.ob_type'" make_required="yes" size=40>
    </PDM_IF>
    }
    else if ("$args.id" != "0" && _dtl.edit )


  • 2.  RE: detail_atomic_cond.htmpl form

    Broadcom Employee
    Posted Jul 01, 2019 07:59 AM
    Hi Simon,

    I have no tested this, but you could try changing the sequence of the values as per below:

    <PDM_IF "$args.rval_assoc" != "" || "$args.id" == "0">"Attribute"<PDM_ELIF "$args.rval_assoc" == "" && "$args.id" != "0">"Data Value"</PDM_IF>,
    "Data Value","Data Value","Attribute","Attribute");​

    Hope this helps?

    ------------------------------
    ===
    Kind Regards,
    Brian
    ------------------------------



  • 3.  RE: detail_atomic_cond.htmpl form

    Posted Jul 01, 2019 05:49 PM
    Hi Brian,

    I tried that and it still returns the same value as the default.

    Simon


  • 4.  RE: detail_atomic_cond.htmpl form
    Best Answer

    Posted Jul 05, 2019 07:24 AM
    hi,

    <PDM_IF "$args.rval_assoc" != "" || "$args.id" == "0">"Data Value"<PDM_ELIF "$args.rval_assoc" == "" && "$args.id" != "0">"Attribute"</PDM_IF>,
    "Data Value","Data Value","Attribute","Attribute");

    regards,
    marc


    ------------------------------
    Senoir Consultant
    Fujitsu
    ------------------------------