title: Get datatable current draw query string to send to server for export as report
body: <p>I have a datatable drawing data from the server. i tried tabletools to export pdf and excel but it only exported what was on the first page of the datatable, it did not export including the other pages on the datatable pagination.</p>
  
  <p>Therefore i want to the get the query string for the current draw so that i can add it to a link that points to another server request url which would generate report from there.</p>
  
  <p>here is my datatable script:</p>
  
  <pre><code>table = $('#table').DataTable({
          processing: true,
          serverSide: true,            
          ajax: {
          url: "http://xxxx/sales",
          data: function ( d ) {
              d.dateGroup = $(".btn.active").attr("data-ecvalue");
              d.startDate = $("input[name=daterangepicker_start]").val();
              d.endDate = $("input[name=daterangepicker_end]").val();               
          }},
          "dom": 'T&lt;"clear"&gt;lfrtip',
          "tableTools": {
              "aButtons": [
                  {
                      "sExtends": "copy",
                      "sButtonText": "Copy to clipboard"
                  },
                  {
                      "sExtends": "csv",
                      "sButtonText": "Save to CSV"
                  },
                  {
                      "sExtends": "xls",
                      "oSelectorOpts": {
                          page: 'current'
                      }
                  },
                   {
                        "sExtends": "download",
                        "sButtonText": "Download PDF",
                        "sUrl":     "exportpdf"
                   }
              ]
          },
          type:"POST",
          columns: [
          { "data": "date" },
          { "data": "order" },
          { "data": "totals" },
          { "data": "subtotals" }
          ]
  });
  </code></pre>
  
  <p>I tried : <code>var mydata = table.fnSettings();
   alert(mydata );</code></p>
  
  <p>but dont know how to do that.....</p>
  
  <p>Am using datatables v1.10.</p>