Query results aren't shown on DataTable

Query results aren't shown on DataTable

thadeuszthadeusz Posts: 1Questions: 1Answers: 0

I want to query a DB and display the value in a datatable.

tableTest = $('#example').DataTable({
ajax: {
url: "/datatables/getSomething",
type: "POST",
data: {
"myRequest": myCustomParams
}
},
serverSide: true,
processing: true,
columns: [
{data: 'a'},
{data: 'b'},
{data: 'c'},
{data: 'd'}
],
responsive: true
});

But it seems the datatable needs forever to process the results. Did I forget anything to add?

This discussion has been closed.