fnServerData and changing the sAjaxSource
fnServerData and changing the sAjaxSource
I am using fnServerData to use a pipeline and the sAjaxSource is set to
"sAjaxSource": "/api/json/syncreply/Request_OpenTicketsInQueue?QueueID=1",
Now I want to change this and I found that I can use these methods
oTable = $('#ticket-list').dataTable();
oTable.api().ajax.url("/api/json/syncreply/Request_OpenTicketsInQueue?QueueID=" + this.selectedQueue());
oTable.api().ajax.reload();
This currently triggers the fnServerData method to be called again but the sSource parameter is still showing the original sAjaxSource url not the modified one.
Am I missing something here?
Answers
I was using an old example code
Using the code on this page solved it for me.
https://datatables.net/examples/server_side/pipeline.html