Requested unknown parameter
Requested unknown parameter
So I'm getting the error " DataTables warning (table id = 'workflowsTable'): Requested unknown parameter '0' from the data source for row 0"
my code is:
[code]
var wTable = $('#workflowsTable').dataTable({
"bJQueryUI": true,
"sPaginationType": "full_numbers",
"sAjaxSource": "/api/jobs/workflows",
"aoColumnDefs": [
{ "aTargets": [0], "fnRender":function(o,val){
return '';
}},
{ "aTargets": [1], "mDataProp": "status" },
{ "aTargets": [2], "mDataProp": "label" },
{ "aTargets": [3], "mDataProp": "jobs_complete" },
{ "aTargets": [4], "mDataProp": "workflow" },
{ "aTargets": [5], "mDataProp": "jobs_failed" },
{ "aTargets": [6], "mDataProp": "jobs_waiting" },
{ "aTargets": [7], "mDataProp": "start" },
{ "aTargets": [8], "mDataProp": "end" }
]
});
[/code]
What I'm trying to do is load all columns except the first one from the json data source. the first one is just a static image for the collapse functionality. How do I get around this?
my code is:
[code]
var wTable = $('#workflowsTable').dataTable({
"bJQueryUI": true,
"sPaginationType": "full_numbers",
"sAjaxSource": "/api/jobs/workflows",
"aoColumnDefs": [
{ "aTargets": [0], "fnRender":function(o,val){
return '';
}},
{ "aTargets": [1], "mDataProp": "status" },
{ "aTargets": [2], "mDataProp": "label" },
{ "aTargets": [3], "mDataProp": "jobs_complete" },
{ "aTargets": [4], "mDataProp": "workflow" },
{ "aTargets": [5], "mDataProp": "jobs_failed" },
{ "aTargets": [6], "mDataProp": "jobs_waiting" },
{ "aTargets": [7], "mDataProp": "start" },
{ "aTargets": [8], "mDataProp": "end" }
]
});
[/code]
What I'm trying to do is load all columns except the first one from the json data source. the first one is just a static image for the collapse functionality. How do I get around this?
This discussion has been closed.
Replies
Allan
Allan