DataTables warning 'Requested unknown parameter'

DataTables warning 'Requested unknown parameter'

jerry1jerry1 Posts: 5Questions: 0Answers: 0
edited April 2014 in General
Hi,
currently I get this warning:
[code]
DataTables warning (table id = 'sort-tab'):
Requested unknown parameter '7'
from the data source for row 2101
[/code]

json calling:
[code]

$("#tab-clean input.chkClean:checkbox").each(function(){
var htmlline= $(this).parent().parent().html();

var lines = htmlline.split('\n');
var sortingtable = $('#sort-tab').dataTable();
sortingtable.fnAddData( [
lines[0],
lines[1],
lines[2],
lines[3],
lines[4],
lines[5],
lines[6]
] );
//THERE IS WARNING!!!
// ... next code

[/code]


all works fine, only this warning is not acceptable...

Replies

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    edited April 2014
    This tech note explains the error in detail: http://next.datatables.net/manual/tech-notes/4 .

    The error is because your table appears to have 9 columns, but you are only adding 7 in your fnAddData call.

    Allan
This discussion has been closed.