CA Service Management

  • 1.  Menubar Customization Based on Condition

    Posted Jul 07, 2015 12:47 PM

    Hi,

     

    I have a requirement where i need to hide the copy options from the menu bar when i select a certain category.

    I tried the below condition from menubar_sd_l2_Analyst.htmpl but not working


    <pdm_if "$args.category.sym" == "XYZ">

    <PDM_MACRO name=menuItem label="Copy" function="make_copy()"

     

    Above condition working for Incident, Request and Problem.But not working in Change.

     

    -Siva



  • 2.  Re: Menubar Customization Based on Condition

    Posted Jul 08, 2015 08:05 AM

    hi,

    try this:

     

    detail_chg:

    var argChgCat = "$args.category";

     

    menubar:

      if(w.ahdframe.argChgCat == "<YOUR_CHGCAT_CODE_HERE>") {

    <PDM_MACRO name=menuItem label="Copy" function="make_copy()">

      }

     

    regards,

    cdtj