Requested unknown parameter '0' for row 0, column 0
Requested unknown parameter '0' for row 0, column 0
dowzer
Posts: 11Questions: 3Answers: 0
I am getting the above error on Datatables 1.10.12. The table renders, I can see the columns, I see Showing 1 to 6 of 6 entries and I can see the 6 rows but none of the rows contain anything.
I have looked at TN 4 (https://datatables.net/manual/tech-notes/4) and the first section for Parameter is an integer. There are no colspan etc and I cannot see any issues with the numbers of rows etc.
I did a debug which is at https://debug.datatables.net/edujuj - what am I missing?
This discussion has been closed.
Answers
It doesn't look like you used
columns.data
to define your columns. The data retrieved looks like this:You are receiving an array of objects as described here:
https://datatables.net/manual/data/#Data-source-types
You will need to define your columns, for example:
Kevin
Thanks for the reply - I have added in the columns:
I have a variable called colname which contains:
And then I am looping through them later on - I am using column filters and they populate fine with the actual values but the table itself does not
The tech note mentions this:
Like I mentioned before your data structure is using objects not arrays. Did you try as I suggested?
Kevin