DataTables warning: table id=table_id - Cannot reinitialise DataTable.
DataTables warning: table id=table_id - Cannot reinitialise DataTable.
tariqe
Posts: 3Questions: 1Answers: 0
Hi,
I'm working on Flask with Mysql using SQLAlchemy .. It's working fine with datatable .. but my problem that when start server or add new entry i get message error bellow
**DataTables warning: table id=table_id - Cannot reinitialise DataTable**.
<script>
$(document).ready(function () {
$('#table_id').DataTable(
{
sPaginationType: "full_numbers",
lengthMenu: [[10, 25, 50, 100], [10, 25, 50, 100]],
columns: [
{ "data": "id" },
{ "data": "statename" },
{ "data": "itpcbb" },
{ "data": "vlanid" },
{ "data": "firstip" },
{ "data": "secondip" },
{ "data": "scisswip" },
{ "data": "notes" },
{ "data": "actions" },
]
}
);
});
Kindly is there any advice about this issue ... Thanks in advance
This discussion has been closed.
Answers
That error suggests you are initialising DataTables twice or more. That doesn’t appear to be the case from your code above, so there is something else going on. Can you give me a link to you page so I can help debug it please.
Regards,
Allan
Kindly, is there any update .. i already comment with url but it not appear
Please post your url again.
Solved .. i just used ( retrieve: true,) can explain to me the main function for this
There's a good description on the reference page for
retrieve
,Colin