Datatables throwing error and showing nulls.

Datatables throwing error and showing nulls.

anup756anup756 Posts: 4Questions: 2Answers: 0

DataTables Debugger code: upolak (http://debug.datatables.net/upolak)
Table Name: myTable
Error: DataTables warning (table id = 'mytable'): Requested unknown parameter 'transDate' from the data source for row 0

Problem:
It throws the error above and shows nulls for all the values inside the table.

Would really appreciate if someone could help me.
Thanks!

Answers

  • allanallan Posts: 61,667Questions: 1Answers: 10,096 Site admin

    This tech document should help: http://datatables.net/manual/tech-notes/4

    Allan

  • anup756anup756 Posts: 4Questions: 2Answers: 0

    The code is returning all the values in valid JSON format (browser console). But still not showing it in the table.

  • anup756anup756 Posts: 4Questions: 2Answers: 0

    Got the answer. It's not the problem with JSON or datatables either. I had to user aData instead of mData. I don't know why. But, it worked.

This discussion has been closed.