CDN Datatables serverside. Send extra parameters not working
<p>I try to send extra paramater but it doesnot work. Can somebody help me please?</p>

<pre><code>var t = $('#userTable').DataTable( {
            "processing": true,
            "serverSide": true,
            "ajax": "${pageContext.request.contextPath}/ajaxTestTable",
            "data": function ( d ) {
                d.myKey = "myValue";
            },
            "columns": [
                { "data": "totalUser" },        
                { "data": "fullname" },
                { "data": "username" },
                { "data": "ministryid" },
                { "data": "gradeid" },
                { "data": "officeemail" }
            ],
            "columnDefs": [ {
                "searchable": false,
                "orderable": false,
                "targets": 0
            } ],
            "order": [[ 1, 'asc' ]],
        } );
</code></pre>

<p>I try to open browser console and it said: </p>

<p>"TypeError: data is undefined"
if ( data.DT_RowId ) {</p>

<p>If i remove "data: function" it will work fine.Why i cant send extra parameter?</p>