我正在尝试在jqgrid中添加指向我的列值的链接。然而它不起作用。
function urlTemplate() {
return ({formatter:'dynamicLink',formatoptions:{url: genUrl, target:"_blank"},
sorttype:"link", searchoptions:{sopt:['eq','bw','bn','cn','nc','ew','en']}});
}
function genUrl(cellValue, rowId, rowData){
return ("{!LEFT($CurrentPage.URL,FIND('/',$CurrentPage.URL,9))}" + rowData.caseId);
}
{name:'caseId',index:'caseId', width:40,hidden: true},
{name:'caseNumber',index:'CaseNumber', width:40,template: urlTemplate()},