n[m] is undefined - Trying to use the non-basic JSON format.
n[m] is undefined - Trying to use the non-basic JSON format.
Hi,
This is the JSON format that I am using:
{
"recordsFiltered": 63,
"draw": 0,
"recordsTotal": 63,
"data": [{
"name": "Nursing Home",
"contactname": "D.R.",
"status": "SENT",
"action": "test",
"quoteNumber": "INV-CF8-757-78",
"dateSent": 1488430800000,
"dateReceived": 1488344400000
}, { .....and so on.... }]
}
I have tried every single suggestion I could find on-line.
It works when I use the JSON format given with the standard basic example. It populates nicely. However, I MUST use the mentioned format.
The error I get is:
TypeError: n[m] is undefined
https://cdn.datatables.net/1.10.13/js/jquery.dataTables.min.js
Line 62
JSON format has been verified, and that is not a problem.
DataTables version I use is: DataTables-1.10.13
Since I have tried too many things, let us please start from a beginning. Which $(document).ready(function() { format/syntax should I be using ? (then I will report all errors I get).
Answers
AAAhhh... the solution was right in front of my nose!
The reason why I got the error was because I had a mismatch between a number of table columns and the JSON data entities...
Thanks for posting back. Good to hear you've got it working now!
Allan