CA Service Management

Expand all | Collapse all

How to customize the employee detail_in for each incident area?

  • 1.  How to customize the employee detail_in for each incident area?

    Posted Aug 16, 2018 05:38 PM

    Hello,

     

    I need to customize the incident and request htmpl forms for the employee form. 

     

    When a employee open the form to create an incident or request, and then select a specific incident area, I need new fields appear on the incident or request form.

     

    I was trying with an If statement like this:

     

    <PDM_IF category.sys = PC.HARDWARE.MOUSE>

    <PDM_MACRO name=dtlTextbox hdr="Marca" attr=string1 colspan=3 keeplinks=yes size=120 spellchk=yes srchknow=yes>

    </PDM_IF>

     

    Thanks for your help



  • 2.  Re: How to customize the employee detail_in for each incident area?

    Broadcom Employee
    Posted Aug 16, 2018 08:43 PM

    Hi Paul,

     

    Why not use Request Area properties?

     

    Request/Incident/Problem Areas - CA Service Management - 17.1 - CA Technologies Documentation 

     

    Regards,

    Gordon.



  • 3.  Re: How to customize the employee detail_in for each incident area?

    Posted Aug 16, 2018 10:04 PM

    Thank's Gordon,

     

    I was trying that but only appears this two options:

    1.- Check box

    2.- Drop down list

     

    The option who I need is the text edit box.

     

    Do you know why does not appear?

     

     

    Thanks for your time.

     

     

    Regards,

    Paul Augdey



  • 4.  Re: How to customize the employee detail_in for each incident area?

    Broadcom Employee
    Posted Aug 17, 2018 12:25 AM

    Hi Paul,

     

    If you don't specify a Validation Rule, it should appear as an Input Text field.

     

    Regards,

    Gordon.



  • 5.  Re: How to customize the employee detail_in for each incident area?

    Posted Aug 17, 2018 12:41 AM

    <PDM_IF '$args.category.sym' == 'PC.HARDWARE.MOUSE'>

    <PDM_MACRO name=dtlTextbox hdr="Marca" attr=string1 colspan=3 keeplinks=yes size=120 spellchk=yes srchknow=yes>

    </PDM_IF>



  • 6.  Re: How to customize the employee detail_in for each incident area?

    Posted Aug 24, 2018 12:12 PM

    Hi,

     

    I try writing the code you recomend me but sends this error in to the user screen:

     

     

    This is the code:

     

     

    Thank's for your help.



  • 7.  Re: How to customize the employee detail_in for each incident area?

    Posted Aug 27, 2018 01:03 AM

    Could You provide description of the error that you get? And the </PDM_IF> on the first line should not be part of this customization.



  • 8.  Re: How to customize the employee detail_in for each incident area?

    Posted Aug 27, 2018 10:47 AM

    Yes thanks, here are what I try to do:

     

       Desing:

     

     

       Code:

       

    Error:

     

       

    If you see, I don't choose an incident area but the error appears from the beginning.



  • 9.  Re: How to customize the employee detail_in for each incident area?

    Posted Aug 28, 2018 09:26 AM

    I see, You are using webscreen painter, I have no experience with it. Usually I use notepad++ to modify forms. If you can attach htmpl file, so we can review it.



  • 10.  Re: How to customize the employee detail_in for each incident area?

    Posted Aug 28, 2018 04:53 PM

    Yes I use webscreen, I dont know how to attach the file .htmpl here.

     

    But a atteched to the documents:

     

     

    Please tell me if you Know a better way to attach the file.

     

    Thanks

     

    Regards 

    Paul Augdey



  • 11.  Re: How to customize the employee detail_in for each incident area?

    Posted Aug 29, 2018 02:21 PM
      |   view attached

    I think the problem is tha our expression is after the 

    <PDM_MACRO name=dtlEndTable>

     

    I have attached corrected file

    Attachment(s)

    zip
    detail_in.htmpl.zip   10 KB 1 version


  • 12.  Re: How to customize the employee detail_in for each incident area?

    Broadcom Employee
    Posted Aug 24, 2018 09:54 AM

    Augdey 

    Did the information provided by Gutis address your requirement?



  • 13.  Re: How to customize the employee detail_in for each incident area?

    Posted Aug 24, 2018 12:16 PM

    Not yet Paul,

     

    I was trying to do it but i had an error.



  • 14.  Re: How to customize the employee detail_in for each incident area?

    Posted Aug 31, 2018 03:22 PM

    Please note that the solution provided by Giedrius is not dynamic.

     

    Meaning : The field will not appear after a category selection. It will appear "onload", if the category is already selected. So you will have to save the incident and open it again to see the field.

     

     

    The correct solution is the one by Gordon_Preston.

     

    As he said, you can have textbox with properties.



  • 15.  Re: How to customize the employee detail_in for each incident area?

    Broadcom Employee
    Posted Sep 07, 2018 12:47 PM

    Augdey 

    Do you require any additional assistance on this topic?

     

    If not, please mark one of the provided responses as correct so that this thread can be closed.