How can I get a data from mData to a link href in "sDefaultContent"?

How can I get a data from mData to a link href in "sDefaultContent"?

vutienitvutienit Posts: 1Questions: 1Answers: 0
edited August 2014 in Free community support

How can I get the data "username" to the line : "sDefaultContent" : '<a href="deleteUser?userName= ???

    $("#example").dataTable( {
            "bProcessing": true,
            "bServerSide": true,
            "sort": "username",
            "sAjaxSource": "userListDataTables.do",
            "aoColumns": [ 
                    { "mData": "username" },       
                {
                    "mData" : null,
                    "sClass" : "center",
                    "sDefaultContent" : '<a href="deleteUser?userName=">Delete</a>'
                }
            ],
    } );
This discussion has been closed.