Access Server Side paramters on callback

Access Server Side paramters on callback

modenmoden Posts: 11Questions: 4Answers: 0
edited June 2017 in Free community support

I have added an extra server side parameter:

ajax: {
            type: "POST",
            url: $("#ChildrenDatatableInitAddress").val(),
            datatype: "json",
            contentType: "application/json; charset=utf-8",
            headers: {
                "__RequestVerificationToken": $('input[name=__RequestVerificationToken]').val(),
            },
            data: 
                function (data) {
                data.sEcho = "echoChildren";
                data.draw = "drawChildren";
                data.GreaterThanFifty = "N";

                data.__RequestVerificationToken = $('input[name=__RequestVerificationToken]').val();

                return data = JSON.stringify(data)
            }
        },

The parameter is updated on the server and returned. How do I access the server parameter data.GreaterThanFifty on callback?

 "drawCallback": function (data)
        {
           ???????
        }
This discussion has been closed.