Reload data from Javascript source
Reload data from Javascript source
iLLneSs
Posts: 1Questions: 1Answers: 0
Hi,
i want to reload the data in an existinc table instance.
I have this to make the instance:
$(document).ready(function() {
$('#dataTable_Beschattung').DataTable( {
scrollY: '600px',
scrollCollapse: true,
paging: false,
dom: '<"top"Bf>rt<"bottom"ilp><"clear">' ,
buttons: ['print'],
data: dataSet,
columns: [
{ title: "Bezeichnung" },
{ title: "Höhe" },
{ title: "Winkel" },
{ title: "Position Erreicht" },
{ title: "Position Unbekannt" },
{ title: "Position im Beschattungs- bereich" },
{ title: "Höhe anfahren Fehler" },
{ title: "Winkel anfahren Fehler" },
{ title: "Sicherheits- sperre aktiv" },
{ title: "Automatik- sperre aktiv" },
{ title: "Bediensperre aktiv" },
{ title: "Eingeschr. Bedienung" },
{ title: "Zuleitung Motor prüfen" },
{ title: "Gerät defekt" }
]
} );
} );
Now I have callback functions in the code wich modify my existing "dataSet".
The data must therefore be reloaded. How I do that?
Greetings Alex
This discussion has been closed.
Answers
If you are updating the dom directly then try
rows().invalidate()
. Or you can userow().data()
to update the row data.Kevin