SearchBuilder
SearchBuilder
localhost1
Posts: 5Questions: 2Answers: 0
Hello. I am trying to use this on a table with an Ajax and POST request. But SearchBuilder doesn't add any query variables, and it doesn't do anything with the table.
How do I get this to work with a POST rather than a GET request?
$("#cpa_utm_statistics").DataTable({
'language': {'url': base_url+'assets/js/datatables_lang.json'},
processing: true,
serverSide: true,
dom: 'QBlfrtip',
columns: [
{'data':'source'},
{'data':'campaign'},
{'data':'medium'},
{'data':'term'},
{'data':'content'},
{'data':'hosts'},
{'data':'hits'},
{'data':'avg_time_spent'},
{'data':'backusers'},
{'data':'refferals'},
{'data':'robots'},
{'data':'leads'}
],
buttons: [],
deferRender: true,
autoWidth: false,
order: [[ 2, "DESC" ]],
ajax: {
url: "<?=base_url('admin/stats/sources')?>?range="+range,
type: "POST",
data: function (d, dt) { d.dt_name = "cpa_utm_statistics" }
},
});
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
SearchBuilder does not currently support server-side processing.
Hi tangerine, thanks for reply.
I have a Datatables Editor, can this help somehow for ServerSide processing in SearchBuilder?
Thanks u.
Hi @localhost1 ,
Sorry but no, there is currently no support for SearchBuilder and ServerSide processing. It is something that we will look at doing in the future, but we aren't sure when that will be yet.
Thanks,
Sandy