Requested unknown parameter 'id' for row 987
Requested unknown parameter 'id' for row 987
fujyhluo
Posts: 2Questions: 1Answers: 0
Hi,
I got this message. I checked the FAQ. I still NOT able to fix it. Can u give me some help.... thx
DataTables warning: table id=mytable2 - Requested unknown parameter 'id' for row 987. For more information about this error, please see http://datatables.net/tn/4
This discussion has been closed.
Answers
From http://datatables.net/tn/4:
Did you check the points itemised after "check the following:"?
hi,
Thank you very much try to help me. I found out my problem.
I was return JSON as following format.
{"data":[{"id":1,
"status_date":"2014-11-29 00:00:00",
"hostname":"srv01.abc.com",
"short_hostname":"xcat",
"os_ver":"CentOS",
"description":"",
"phy_vm":"Physical",
"cluster":"aaa"
}]}
That is NOT right format it is looking for. The right format should be
{"id":1,
"status_date":"2014-11-29 00:00:00",
"hostname":"srv01.abc.com",
"short_hostname":"xcat",
"os_ver":"CentOS",
"description":"",
"phy_vm":"Physical",
"cluster":"aaa"
}