Dynamic Configured dataTable
Dynamic Configured dataTable
Hi, I have a problem when I put columns for javascript, the error is: "oColunm is undefine", I have this code:
A class jsp that include a js.
Example.jsp
.......
.....
Ex.js
//Complete the Table
var str="";
str += "Campo1";
str += "Campo2";
str += "Campo3";
str += "Campo4";
str += "Campo5";
str += "";
for (var i = 0; i < list.length; i++){
str += "" + list.campo1 + "";
str += "" + list.campo2 + "";
str += "" + list.campo3 + "";
str += "" + llist.campo4 + "";
str += "" + llist.campo5 + "";
}
}
document.getElementById('tablaExample').innerHTML = str;
$('#tablaDeTransacciones').dataTable( {
"sPaginationType": "full_numbers",
} );
How can configured dataTables for do this? The data for the table is taken for the server using dwr.
A class jsp that include a js.
Example.jsp
.......
.....
Ex.js
//Complete the Table
var str="";
str += "Campo1";
str += "Campo2";
str += "Campo3";
str += "Campo4";
str += "Campo5";
str += "";
for (var i = 0; i < list.length; i++){
str += "" + list.campo1 + "";
str += "" + list.campo2 + "";
str += "" + list.campo3 + "";
str += "" + llist.campo4 + "";
str += "" + llist.campo5 + "";
}
}
document.getElementById('tablaExample').innerHTML = str;
$('#tablaDeTransacciones').dataTable( {
"sPaginationType": "full_numbers",
} );
How can configured dataTables for do this? The data for the table is taken for the server using dwr.
This discussion has been closed.
Replies
Allan