how render other column data in datatable columndefs...
how render other column data in datatable columndefs...
![immortalhemraj](https://secure.gravatar.com/avatar/88ba2e84a66c1cdb3d5a883ba0eca9ef/?default=https%3A%2F%2Fvanillicon.com%2F88ba2e84a66c1cdb3d5a883ba0eca9ef_200.png&rating=g&size=120)
"columns": [{
"data": "seriel"
}, {
"data": "sa_id"
}, {
"data": "open"
"render": function(data, type, row, meta){
if(type === 'display'){
data = '<a href="User.jsp?date1=' + date1 + '&&date2='+ date2 +'&&status='+ 'Open' +'&&sa_id='+ ..... +'">' + data + '</a>';
}
return data;
}
}
]
EDIT: Updated post to use Markdown Code formatting.
This discussion has been closed.
Answers
I guess you are asking about
date1
anddate2
in this line:data = '<a href="User.jsp?date1=' + date1 + '&&date2='+ date2 +'&&status='+ 'Open' +'&&sa_id='+ ..... +'">' + data + '</a>'
date1
anddate2
need to be variables available within the scope of where you initialized Datatables. If this doesn't help then please provide a description of the problem you are having.Kevin