CA Service Management

  • 1.  Add property tab in detail_cr_wf.htmpl form

    Posted Sep 26, 2017 08:17 AM

    Hello Community, 

     

    I need to add a tab in detail_cr_wf.htmpl form that to show me the properties request. I have added the next (<PDM_MACRO name=tab title="Requisitos de la Petición" file="xx_prpwf_tab.htmpl">) in detail_wf.htmpl and works ok and to show me the properties change order, but in the detail_cr_wf.htmpl form, and doesn't show me the properties request.

     

    any idea?

     

    Thanks

     

    Regards.



  • 2.  Re: Add property tab in detail_cr_wf.htmpl form

    Broadcom Employee
    Posted Sep 27, 2017 04:42 PM

    Joaquin,

     

    Which release of SDM is this?  

     

    Are you getting any errors of any sort?

     

    _R



  • 3.  Re: Add property tab in detail_cr_wf.htmpl form

    Posted Sep 28, 2017 01:48 AM

    The release is CA Service Management R17.0. I don't get error. The property tab is showed, but it doesn't appear the properties and values request.



  • 4.  Re: Add property tab in detail_cr_wf.htmpl form

    Broadcom Employee
    Posted Sep 28, 2017 12:22 PM

    Thank you.

     

    It almost seems like you'd have to pass some additional argument for it to show the Request Properties on the Workflow Detail form. 

     

    Maybe others familiar with customizing forms are able to help out here? 

     

    _R



  • 5.  Re: Add property tab in detail_cr_wf.htmpl form

    Posted Oct 11, 2017 03:05 PM

    Hi SoporteCAcma ,  were you able to make any progress on this one?

    Let us know,

    Jon I.



  • 6.  Re: Add property tab in detail_cr_wf.htmpl form
    Best Answer

    Posted Oct 12, 2017 09:04 AM

    Hi SoporteCAcma,

     

    To get this working on the detail_cr_wf form you need additional logic added to the xx_prop_tab.htmpl file.  Open up xx_prop_tab and look for this block of code.

    <PDM_IF "$prop.form_name_2" == "cr" || "$prop.form_name_2" == "in" || "$prop.form_name_2" == "pr">
    <PDM_LIST SOURCE=args.properties>
    detailWriteProperty(n++, "$args.properties.required",
              '<PDM_FMT ESC_STYLE=C PAD=NO>$args.properties.label</PDM_FMT>',
              '<PDM_FMT ESC_STYLE=C PAD=NO>$args.properties.value</PDM_FMT>',
              '<PDM_FMT ESC_STYLE=C PAD=NO>$args.properties.sample</PDM_FMT>');
    </PDM_LIST>
    <PDM_ELSE>
    <PDM_LIST SOURCE=args.property_list>
    detailWriteProperty(n++, "$args.property_list.required",
              '<PDM_FMT ESC_STYLE=C PAD=NO>$args.property_list.label</PDM_FMT>',
              '<PDM_FMT ESC_STYLE=C PAD=NO>$args.property_list.value</PDM_FMT>',
              '<PDM_FMT ESC_STYLE=C PAD=NO>$args.property_list.sample</PDM_FMT>');
    </PDM_LIST>
    </PDM_IF>

    After the closing </PDM_IF> statement add the following..

    <PDM_IF "$prop.form_name_2" == "cr_wf">
    <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_FMT ESC_STYLE=C PAD=NO>$args.cr.properties.sample</PDM_FMT>');
    </PDM_LIST>
    <PDM_ELSE>
    <PDM_LIST SOURCE=args.property_list>
    detailWriteProperty(n++, "$args.cr.property_list.required",
              '<PDM_FMT ESC_STYLE=C PAD=NO>$args.cr.property_list.label</PDM_FMT>',
              '<PDM_FMT ESC_STYLE=C PAD=NO>$args.cr.property_list.value</PDM_FMT>',
              '<PDM_FMT ESC_STYLE=C PAD=NO>$args.cr.property_list.sample</PDM_FMT>');
    </PDM_LIST>
    </PDM_IF>

    Once you add this code, the property tab should start working on the detail_cr_wf form.



  • 7.  Re: Add property tab in detail_cr_wf.htmpl form

    Posted Oct 12, 2017 09:25 AM

    After more testing I found that this only displays the properties when in read-only mode..  Not sure how to get it to work while in Edit.



  • 8.  Re: Add property tab in detail_cr_wf.htmpl form

    Posted Oct 13, 2017 04:17 AM

    Hello, 

     

    it's ok and in read-only works ok. The problem is while edit, that the property don't show. I have done tests and I can't show the properties in edit mode. 

     

    Regards.



  • 9.  Re: Add property tab in detail_cr_wf.htmpl form

    Posted Oct 13, 2017 08:27 AM

    Anyone have any ideas for SoporteCAcma on how to get this to work in Edit Mode?