How to get all data?
How to get all data?
chucky2183
Posts: 2Questions: 0Answers: 0
Hi. I'm new with this excellent framework.
Well i use DT for an invoice details. I create a new table and i add data very fine. Now i want to know how i get all data from the datatable. I fill all, and then when i finished, i need to get data to save in the database.
Can anyone help me please?
Sorry for my english, isn't very good
Thanks
Well i use DT for an invoice details. I create a new table and i add data very fine. Now i want to know how i get all data from the datatable. I fill all, and then when i finished, i need to get data to save in the database.
Can anyone help me please?
Sorry for my english, isn't very good
Thanks
This discussion has been closed.
Replies
Allan
var oTable = $('#whatever').dataTable();
oTable.fnGetData();
[/code]
Allan
Allan
Hi Allan,
I'm trying to get all the data from the table, but when I use fnGetData(), it leaves out the header. Is there another call I can use to get everything in the entire table?
Thanks!
--edit: saw your response to my other post, so sorry for duplicate questions! Check Allan's answer here: http://www.datatables.net/forums/discussion/comment/60182#Comment_60182