How to access what is filtered and by what order in response?

How to access what is filtered and by what order in response?

thepanonethepanone Posts: 4Questions: 2Answers: 0

I'm using DataTables in project not implemented by me, and I'm trying to figure out how to get fileter and order data from Response.

In .php class that catch is defined in Ajax:

            var table = $('#table').DataTable({
                ajax: {
                    url: "../admin/ajax/product.php",
                    data: function (d) {

I have access to $_GET variable with data about what is filtered and what order is in use:

Array
(
    [draw] => 2
    [columns] => Array
        (
            [0] => Array
                (
                    [data] => 0
                    [name] => 
                    [searchable] => false
                    [orderable] => false
                    [search] => Array
                        (
                            [value] => 
                            [regex] => false
                        )

                )

            [1] => Array
                (
                    [data] => 1
                    [name] => 
                    [searchable] => true
                    [orderable] => true
                    [search] => Array
                        (
                            [value] => 
                            [regex] => false
                        )

                )

            [5] => Array
                (
                    [data] => 5
                    [name] => 
                    [searchable] => false
                    [orderable] => true
                    [search] => Array
                        (
                            [value] => 5
                            [regex] => false
                        )

                )
        )

    [order] => Array
        (
            [0] => Array
                (
                    [column] => 2
                    [dir] => asc
                )

        )

    [start] => 0
    [length] => 10
    [search] => Array
        (
            [value] => 
            [regex] => false
        )

    [method] => getList
)

Now I need these information (what is filtered and by what order) in response to do something with this data in next Request but this time without ajax and DataTable.

How to access what is filtered and by what order in response??

This discussion has been closed.