Two tables both sharing same thead content..

Two tables both sharing same thead content..

nickyyonickyyo Posts: 4Questions: 0Answers: 0
edited October 2013 in DataTables 1.9
I'm calling the two tables via attaching variables for the data and column names, the data works but the column names are repeated in the second table..

"aaData": tableDataa.data,
"aoColumns": tableData.displayFields

Any help will be appreciated, thanks in advance :)

Replies

  • allanallan Posts: 63,381Questions: 1Answers: 10,449 Site admin
    Not quite sure what you mean (please link to a test case). You are passing in `tableData.displayFields` to both tables?

    Allan
  • nickyyonickyyo Posts: 4Questions: 0Answers: 0
    Thanks for the reply. I am indeed.

    I've put the [code]dataTable()[/code] within a function, so that I can call it twice but with different values passed through. [code]tableData.displayField[/code]s variable contains all the coulmns header names and the [code]tableDataa.data[/code] has all the values for those headers columns.

    The problem is, the second tables header column names are the same as the first table column names.. I've debugged the code and the correct values are being passed through but its not updating on the datatables even though the values for those columns changes successfully. Hope that makes sense.
This discussion has been closed.