dataTable().row() not a function

dataTable().row() not a function

layoslayos Posts: 2Questions: 1Answers: 0

Hi all, thank you in advance for any support.
I have the following scenario: one datatable that loads data from oData with a custom function (i.e. fnServerData) to manage odata uri parameters ($filter, $sort, ...).
When I tryed to manage the row click to get the content of a single row I got this error:
"Uncaught TypeError: $(...).dataTable(...).row is not a function" (I'm followng the documentation example here: https://datatables.net/examples/api/select_single_row.html )

Am I missing something or am I doing some mistake?

Thank you

Answers

  • tangerinetangerine Posts: 3,365Questions: 39Answers: 395

    Am I missing something or am I doing some mistake?

    Without seeing your code, who knows?
    However, the example initialises using "DataTable" whereas your error message says "dataTable". Spot the difference. Perhaps that's it.

  • layoslayos Posts: 2Questions: 1Answers: 0

    Yes, it was the case of function. I didn't notice it, newbie mistake.
    (about the code,it is a lot of lines, I didn't want to flood the forum with a huge post as my debut. :)

    Thank you a lot

  • tangerinetangerine Posts: 3,365Questions: 39Answers: 395

    I didn't notice it, newbie mistake.

    Not just newbie - one of the recurring features of my coding history :-(

This discussion has been closed.