CA Service Management

 View Only

How to visible specific Properties in request workflow page for specific wf task

  • 1.  How to visible specific Properties in request workflow page for specific wf task

    Posted Mar 08, 2023 03:10 AM

    Hi Team

    The below code works to visible all the ticket properties in request workflow page (detail_cr_wf) which works fine.

    <PDM_MACRO name=dtlStartRow>
    document.write("<TR><TH CLASS=detailro ALIGN=left VALIGN=top colspan=5 >Ticket-Propertiessssss</TH></TR>");
    detailReadonlyFormRowHdr("Name");
    detailReadonlyFormRowHdr("Value");
    detailEndHdrRow();
    var n = 10;
    <PDM_LIST SOURCE=args.cr.properties>
    detailWriteProperty(n++,"$args.cr.properties.required",
    '<PDM_FMT ESC_STYLE=C PAD=NO>$args.cr.properties.label</PDM_FMT>',
    '<PDM_FMT ESC_STYLE=C PAD=NO>$args.cr.properties.value</PDM_FMT>');
    </PDM_LIST>
    if ( n == 10 )
    detailNoProperties();

    However , In some wf cases for different roles, i want to visible  only specifc properties for specfic wf task. For example, prop4 field i need to visible for one wf task and below code i have written which is not working. Can anyone Help on this

    <PDM_IF "$args.task" == "DSS">

    <PDM_MACRO name=dtlWriteproperty label="cr.prop4.label" value="cr.prop4.value" propNum=4>

    </PDM_IF>