CA Service Management

  • 1.  How to hide some fields in detail_in.htmpl

    Posted Aug 28, 2018 03:15 AM

    Dear All,

     

    I would like to hide some fields on Incident Detail page, I try to comment on source code of each field but it still to show on Incident Detail. I would like to hide Symptom, Resolution Code, Resolution Method field.

    My environment is CA Service Desk r17.0.

     

     

    Please guide me to hide field.

     

    Regards,

    KS



  • 2.  Re: How to hide some fields in detail_in.htmpl

    Broadcom Employee
    Posted Aug 29, 2018 10:14 AM

    Hi Komgrit,

     

    Commenting these lines out doesn't seem to load the form correctly, however if you delete them, then run pdm_webcache and clear your browser cache it should work.

     

    <PDM_MACRO name=dtlDropdown hdr="Symptom" attr=symptom_code>
    <PDM_MACRO name=dtlDropdown hdr="Resolution Code" attr=resolution_code lookup=no>
    <PDM_MACRO name=dtlDropdown hdr="Resolution Method" attr=resolution_method lookup=no>

     

     

    Thanks,

    Scott 



  • 3.  Re: How to hide some fields in detail_in.htmpl
    Best Answer

    Posted Aug 30, 2018 03:10 AM

    Hi,

    how did you commented the code?

     

    If you like HTML styled comment, you need to comment each line:

    <!-- PDM_MACRO name=dtlStart -->
    <!-- PDM_MACRO name=dtlEnd -->

     

    This one is wrong way but looking good in HTML syntax highlighter:

    <!-- PDM_MACRO name=dtlStart>
    <PDM_MACRO name=dtlEnd -->

    JS comment also doesn't work

    // <PDM_MACRO name=dtlStart>
    // <PDM_MACRO name=dtlEnd>
    /*
    <PDM_MACRO name=dtlStart>
    <PDM_MACRO name=dtlEnd>
    */

     

    IMHO the best way to comment multiple lines is to wrap them with false PDM_IF statement. Also you can always enable them by switching 0 to 1.

    <PDM_IF 0>
        <PDM_MACRO name=dtlDropdown hdr="Symptom" attr=symptom_code>
        <PDM_MACRO name=dtlDropdown hdr="Resolution Code" attr=resolution_code lookup=no>
        <PDM_MACRO name=dtlDropdown hdr="Resolution Method" attr=resolution_method lookup=no>
    </PDM_IF>

     

    Regards.



  • 4.  Re: How to hide some fields in detail_in.htmpl

    Posted Aug 30, 2018 06:55 AM

    Hi, 

     

    Thanks for your help, I used <PDM_IF 0> to comment, that's work.

     

    Regards,

    KS