CA Service Management

  • 1.  property field label and value display on list form

    Posted Mar 24, 2016 01:00 PM

    I don't have a luck to display the property field label and value on request list form. If this is possible to display then please advise of a solution or workaround.



  • 2.  Re: property field label and value display on list form

    Posted Mar 28, 2016 01:52 AM

    Hi,

     

    Could you elaborate this a little more? Maybe I can suggest something.

     

    Regards,

    Hemant



  • 3.  Re: property field label and value display on list form

    Posted Mar 28, 2016 09:30 AM

    Hi Hemant -- To be able to search by property labels and values on the request list form as search filters and also to display them as columns on the grid list. Thank You!



  • 4.  Re: property field label and value display on list form

    Posted Mar 28, 2016 03:13 AM

    Hi,

    if I understood your goal, you can try to achieve this in this way:

    <PDM_MACRO name=lsWrite text="var zprps = '';"> 

    <PDM_MACRO name=lsWrite text="<PDM_LIST SOURCE=list.properties PREFIX=prps>"> 

    <PDM_MACRO name=lsWrite text="zprps += '<br>' + @{prps.label} + ' : ' @{prps.value};"> 

    <PDM_MACRO name=lsWrite text="</PDM_LIST>"> 

    <PDM_MACRO NAME=lsCol hdr="prps" attr="id" fmtfunc=showPrps> 

     

    function showPrps(value) {

    rs.data(zprps);

    }



  • 5.  Re: property field label and value display on list form

    Posted Mar 28, 2016 09:31 AM

    Hi cdtj -- I will give this a try and let you know. Thank You!!



  • 6.  Re: property field label and value display on list form

    Posted Mar 28, 2016 11:08 AM

    Hi cdtj -- I have added your lines of code after Request# column which inserted a new column 'prps' but doesn't display a value, though the request tickets had a property field. Any thoughts and suggestions?



  • 7.  Re: property field label and value display on list form

    Posted Mar 28, 2016 11:17 AM

    I got some luck with the below code but have to run an extended testing.

     

    <PDM_MACRO name=lsCol hdr="properties Label" attr=properties.label>
    <PDM_MACRO name=lsCol hdr="properties Value" attr=properties.value>



  • 8.  Re: property field label and value display on list form

    Posted Mar 28, 2016 12:05 PM

    Works partially as it broke the request list form after adding the above.

    The only time it works is when I use the properties search string in the Additional Arguments field.



  • 9.  Re: property field label and value display on list form
    Best Answer

    Posted Mar 28, 2016 11:20 PM

    okay, try this code then:

    <PDM_MACRO name=lsWrite text="var zprps = '';">   
    <PDM_MACRO name=lsWrite text="<PDM_LIST ESC_STYLE=C FACTORY=cr_prp WHERE=\"owning_cr = '@{list.persistent_id}'\" PREFIX=prps>"> 
    <PDM_MACRO name=lsWrite text="zprps += '<br>' + '<i>@{prps.label}</i>' + ' : ' + '@{prps.value}';">
    <PDM_MACRO name=lsWrite text="</PDM_LIST>"> 
    
    function showPrps(value) {
      rs.data(zprps);
    }
    

    Adding some html code styling could make them looking like this:



  • 10.  Re: property field label and value display on list form

    Posted Mar 29, 2016 01:46 PM

    This works like a Charm.Thank You, cdtj!!