Another Requested unknown parameter '0' for row 0, column 0 Problem

Another Requested unknown parameter '0' for row 0, column 0 Problem

ebcnebcn Posts: 5Questions: 1Answers: 0

http://live.datatables.net/pucuyetu/2/edit
Hi
I'm aware of all the other questions raised to do with this but..
I have one app working perfectly with DataTables but on creating another I cannot get past the data loading problem, as can be seen in my live example copied directly from my code, it should work fine but on Edge I get the modal with "Requested unknown parameter '0' for row 0, column 0" warning and on IE I get the table with ALL the columns filled with null & no warning, so the Surname column is not hidden on either table.
I guess I'm looking at some other problem that's not data related?
Unfortunately I'm behind a firewall so can't use the debugger
Thanks
E

This question has an accepted answers - jump to answer

Answers

  • ebcnebcn Posts: 5Questions: 1Answers: 0

    I should have said that the number of rows -3 in this case - is correctly reflected on the table

  • colincolin Posts: 12,604Questions: 0Answers: 2,154

    I just tried that on both IE and Edge, and both worked as expected. We would need to see the problem occur to be able to progress this,

    Colin

  • ebcnebcn Posts: 5Questions: 1Answers: 0

    Thanks Colin
    Appreciate there's not a lot to do if it works but it's really bugging me too!
    I get this from

    console.log( jQuery("#employee-table").DataTable().row(':eq(0)').data() );
    
    {USERNAME: "POLSCW1", FORENAME: "POLICY", SURNAME: "SPECIALIST1", TEAM: "UNKNOWN"}
    

    but no data displays - I may have to try and copy this to my home laptop and try the debugger from there

  • colincolin Posts: 12,604Questions: 0Answers: 2,154

    The best way for this to be resolved would be a test case that reproduces it - that would be more useful than the debugger,

    Colin

  • ebcnebcn Posts: 5Questions: 1Answers: 0
    edited August 26

    Thanks - I'll update if I find the answer

    Just like to say how much I appreciate what your all doing here - this is a great product!

  • kthorngrenkthorngren Posts: 13,780Questions: 25Answers: 3,242
    Answer ✓

    Requested unknown parameter '0' for row 0, column 0

    That suggests you don't have columns.data configured. It looks like you are using objects in your test case and console output. My guess is you are using $('#employee-table').DataTable(); to get the API but this is executing before your code to initialize Datatables with columns.data. So the $('#employee-table').DataTable(); is actually initializing Datatables.

    Kevin

  • ebcnebcn Posts: 5Questions: 1Answers: 0

    Kevin you were exactly correct!
    I included my columns.data options in $('#employee-table').DataTable(options); & the table populated perfectly!
    I had included the DataTables options in my angular module directive as I previously did with my other app but for some reason this didn't work here?
    Thank you so much

Sign In or Register to comment.