datatables warning (table id = 'example') requested unknown parameter

datatables warning (table id = 'example') requested unknown parameter

james270212james270212 Posts: 6Questions: 1Answers: 0
edited May 2014 in DataTables

Guys here is My test case and M getting error which is common

http://debug.datatables.net/eminuv

So can you help Me to solve this Error?

Replies

  • allanallan Posts: 63,489Questions: 1Answers: 10,469 Site admin

    See the null</code>-or-<code>undefined</code>-data">documentation for this error message. You need to use sDefaultContent since some of your data is null.

    Allan

  • james270212james270212 Posts: 6Questions: 1Answers: 0
    edited May 2014

    Its good to see your reply but if M keeping as sDefaultContent Null
    Its not giving warning but giving only Null values in table. . .

    "aoColumns": [
    { "mDataProp": "userName" , "sDefaultContent" : "" },
    { "mDataProp": "actionName" , "sDefaultContent" : "" },
    { "mDataProp": "actionEvent" , "sDefaultContent" : "" },
    { "mDataProp": "actionDescription" , "sDefaultContent" : "" },
    { "mDataProp": "actionTime" , "sDefaultContent" : "" },
    { "mDataProp": "actionStatus" , "sDefaultContent" : "" }
    ],

    Here is test case : http://debug.datatables.net/axipoh

  • allanallan Posts: 63,489Questions: 1Answers: 10,469 Site admin

    Looking at your debug trace you have the first column set to userName which is fine. Except from the fact that your eta doesn't have a userName property...

    The data looks like this:

    {
        "sEcho": "1",
        "iTotalRecords": 1085,
        "iTotalDisplayRecords": 55,
        "aaData": [{
            "userID": 0,
            "userAuditTrailBean": {
                "userAuditTrailID": 690,
                "userAuditActionName": "Create User Account",
                "userAuditActionEvent": "User Account Creation",
                "userAuditActionDescription": "User Account is created.",
                "userAuditActionDate": "2014-05-01 20:34:40.0",
                "userAuditActionStatus": "Succeeded"
            }
        }, {
            "userID": 0,
            "userAuditTrailBean": {
                "userAuditTrailID": 690,
                "userAuditActionName": "Create User Account",
                "userAuditActionEvent": "User Account Creation",
                "userAuditActionDescription": "User Account is created.",
                "userAuditActionDate": "2014-05-01 20:34:40.0",
                "userAuditActionStatus": "Succeeded"
            }
        }, {
            "userID": 0,
            "userAuditTrailBean": {
                "userAuditTrailID": 690,
                "userAuditActionName": "Create User Account",
                "userAuditActionEvent": "User Account Creation",
                "userAuditActionDescription": "User Account is created.",
                "userAuditActionDate": "2014-05-01 20:34:40.0",
                "userAuditActionStatus": "Succeeded"
            }
        }, {
            "userID": 0,
            "userAuditTrailBean": {
                "userAuditTrailID": 690,
                "userAuditActionName": "Create User Account",
                "userAuditActionEvent": "User Account Creation",
                "userAuditActionDescription": "User Account is created.",
                "userAuditActionDate": "2014-05-01 20:34:40.0",
                "userAuditActionStatus": "Succeeded"
            }
        }, {
            "userID": 0,
            "userAuditTrailBean": {
                "userAuditTrailID": 690,
                "userAuditActionName": "Create User Account",
                "userAuditActionEvent": "User Account Creation",
                "userAuditActionDescription": "User Account is created.",
                "userAuditActionDate": "2014-05-01 20:34:40.0",
                "userAuditActionStatus": "Succeeded"
            }
        }]
    }
    

    Allan

This discussion has been closed.