CA Service Management

 View Only
  • 1.  Adding link to request

    Posted Feb 02, 2016 02:05 PM

    The goal is to display a link on the request page for a documentation link defined at the category level.

     

    I have successfully added a custom db field to problem_category for the url and updated detail_probcat.htmpl to edit that field. I was able to add the url as a read only text box to detail_cr.htmpl using <PDM_MACRO name=dtlReadonly hdr="Process Flow Link" attr="category.zprocess_link" colspan="2">, but can't figure out how to make it a clickable link.

     

    I was able to use <PDM_MACRO name=dtlShowtext value="<A TARGET=newwindow HREF=http://www.google.com>test link</A>" keeplinks = yes> to make a clickable link to google, but don't know how to replace  http://www.google.com with category.zprocess_link to make it work as desired.

     

    Any suggestions?



  • 2.  Re: Adding link to request
    Best Answer

    Posted Feb 02, 2016 02:59 PM

    Hi,

    check solution described by Michael_Mueller at this thread: Re: External system ticket field to launch external site.

    Personally, i'm using detailRowHdr and detailSetRowData js functions to display any kind of data.

     

    detailRowHdr("Process Flow Link");

    detailSetRowData("<a target=_blank href='$args.category.zprocess_link'>link_description</a>");

     

    Regards,

    Timur



  • 3.  Re: Adding link to request

    Posted Feb 02, 2016 03:36 PM

    Thanks! Looks like the '$args was the part I was missing I had tried category.zprocess_link without that, but it didn't work.