SearchBuilder

SearchBuilder

localhost1localhost1 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

Answers

  • tangerinetangerine Posts: 3,365Questions: 39Answers: 395

    SearchBuilder does not currently support server-side processing.

  • localhost1localhost1 Posts: 5Questions: 2Answers: 0

    Hi tangerine, thanks for reply.

    I have a Datatables Editor, can this help somehow for ServerSide processing in SearchBuilder?

    Thanks u.

  • sandysandy Posts: 913Questions: 0Answers: 236
    Answer ✓

    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

This discussion has been closed.