Request unknown parameter {mData function} from data source for row 0

Request unknown parameter {mData function} from data source for row 0

ausernameausername Posts: 2Questions: 0Answers: 0
edited December 2012 in DataTables 1.9
I've seen the FAQ and checked my code a number of times but I am unable to remove the following popup on v1.9.4:

[quote]"DataTables warning (table_id = 'example'): Requested unknown parameter {mData function} from the data source for row 0"[/quote]

The data displays correctly when clicking OK to pop up box.

Debug data link - http://debug.datatables.net/asiwak

Whatever I try does not seem to fix. I'm using Google Chrome.

Please help.

Replies

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    That's odd - it looks like it should work okay. Can you link me to a test case so I can experiment a little?

    One thing I would say, is that it might be worth using mData and mRender rather than just mData on its own. mRender is a little easier since you don't need to set anything.

    Allan
  • ausernameausername Posts: 2Questions: 0Answers: 0
    I did try mRender with similar popup issue. I'm not sure exactly what you mean by test case by I've pasted the HTML in http://live.datatables.net/uvudab/edit#javascript,html

    The Ajax output is fixed as:

    [code]{"aaData":[{"a1": "test 1", "a0": "test 0", "a3": "test 3", "a2": "test 2", "a4": "test 4"}, {"a1": "test 1", "a0": "test 0", "a3": "test 3", "a2": "test 2", "a4": "test 4"}, {"a1": "test 1", "a0": "test 0", "a3": "test 3", "a2": "test 2", "a4": "test 4"}, {"a1": "test 1", "a0": "test 0", "a3": "test 3", "a2": "test 2", "a4": "test 4"}]}[/code]

    If need any more then please let me know.

    Thank you for your help.
  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    > I'm not sure exactly what you mean by test case

    A running example showing the issue so I can debug it as setting up an example takes up time from developing DataTables. See http://datatables.net/forums/discussion/12899/post-test-cases-when-asking-for-help-please-read

    Example using mRender based on your data:
    http://live.datatables.net/uvudab/2/edit
This discussion has been closed.