0
My problem:
I need to submit an object to my action. The component that manages the tables today, adopted here in the company, is the datatable.
In order to send this parameter, I had to change the form of sending:
"fnServerParams": function (aoData) { return aoData; },
To:
"fnServerData": function (sSource, aoData, fnCallback, oSettings) {
filterDataTable(sSource, aoData, fnCallback, oSettings);
},
What happens: in the first request, where there is no filter, the table is loaded straight. However, running after rendering any filter, or paging or changing the amount of records in the table no longer updates your records.
Implementing the callback function it is possible to visualize the return of the correct data but how do I update this layout with the new records?
If you use the fnDraw
a new request will be forwarded to the server, since the table has configuration: "bServerSide": true,