AnsweredAssumed Answered

Ctreating a link within list_view

Question asked by ArunavaS on Jul 15, 2016
Latest reply on Jul 15, 2016 by ArunavaS

Hello All,

I am trying to make group field(column) as hyperlink in list_wf.htmpl page. For that I wrote the following function:

 

/////*************************** Code by ArunavaS ***************************//

    var group_pid;

    <pdm_macro name=lsWrite text="pdm_if \"@{list.group:0}\" != ''">

    <PDM_MACRO name=lsWrite text="group_pid = \"@{list.group}\";">

    <pdm_macro name=lsWrite text="/pdm_if">

 

function show_group(value) {

    var txt = "<A HREF=\"javascript:showDetailWithPersid('" + group_pid + "')\">" +

              value + " </A>";

    rs.data(txt);

                }

  

/////*************************** Code by ArunavaS ***************************//

<PDM_MACRO name=lsCol hdr="Group" attr=group fmtfunc="show_group">

 

 

But after I publish and test, it works as hyperlink, and takes me in a page where it says : "AHD04415:ERROR: Expecting PERSID to be set as a hidden field on the previous page"

 

May I have any suggestion to get rid of this error? Or do we have any better way to achieve it?

 

Thanks

ArunavaS

Outcomes