I have this function in a zlist_***.htmpl form:
function CallsSYS (value) {
rs.data("<a href=\"#\" onclick=\"popupWithURL('http://1.1.1.1/SYS/Web/load.aspx?user=$args.cr.customer.userid&tkt=$args.ticket', '1', '1', '1');\">" + value + "</a>");
}
I'm calling this function from a "lsCol" in the same zlist_obj1.htmpl form:
<PDM_MACRO name=lsStart>
<PDM_MACRO name=lsCol hdr="ticket" attr=ticket exportFmt="ShowLink" fmtfunc="CallsSYS">
<PDM_MACRO name=lsEnd>
This zlist_obj1.htmpl form is shown in a tab form inside detail_cr.htmpl form.
The situation is, I can't get the values of the args inside the js function: $args.cr.customer.userid and tkt=$args.ticket
I.ve tried with an alert and those variables are empty.
Thanks for any suggestion.
Ana KBS