CA Service Management

 View Only
  • 1.  Need to change the color of analyst in list_alg

    Posted Aug 15, 2018 08:03 AM

    I want to change the color of Analyst based on name of the user in list_alg.htmpl, I however somehow achieved to change the color without if conditon but If I am using If condition I am unable to see color

     

    function showUser(value)
    {
    var alghtml;
    if (value == "Malhotra, Mayur")

     

    rs.data("<A CLASS=record HREF=\"javascript:showDetailWithPersid('" + analyst_persid + "')\">"+ "<span style='color: red'>"+ value + "</span>" +"</A>");
    else
    alghtml = "<A CLASS=record HREF=\"javascript:showDetailWithPersid('" + analyst_persid + "')\">" + value +"</A>" ;
    rs.data(alghtml);
    }

     

    <PDM_MACRO name=lsCol hdr="Created By" attr=analyst fmtfunc=showUser link=yes sort=no>

     

    I tried with uuid as 

    if (value == (uuid)"447D3CC0D35B9446BA0D27B81AA369A9" but no result.

     

    Please guide.

     

    Thanks

    MM



  • 2.  Re: Need to change the color of analyst in list_alg

    Broadcom Employee
    Posted Aug 15, 2018 09:38 AM

    Hi Mayur,

     

    Have you tried with uuid as 

    if (value == U'447D3CC0D35B9446BA0D27B81AA369A9')

     

    Let me know if this works?



  • 3.  Re: Need to change the color of analyst in list_alg

    Posted Aug 15, 2018 10:32 AM

    Hello Maheshwar,

     

    Thanks for reply, I tried but it didn't work.

     

     

    Thanks & Regards

    Mayur Malhotra