Quantcast
Channel: DataTables 1.9 — DataTables forums
Viewing all articles
Browse latest Browse all 1817

sAjaxDataProp

$
0
0
Hello
I am using the following code for dataTables. i am getting aData is undefined error
Pls help...
function populateValueAddTable() {
		valueAddOTable = $('#valueAddTable').dataTable({
			"bDestroy" : true,
			"bServerSide" : false,
			"bProcessing" : true,
			"sAjaxDataProp" : "list.values",
			"sAjaxSource" : "rs/services/json/getValueAdd",
			"sScrollY" : 200,
			"bJQueryUI" : true,
			"sPaginationType" : "full_numbers",
			"aoColumns" : [ {
				"sTitle" : "ID",
				"mDataProp" : "id"
			}]
		});

	}
and JSON is

{
"list": [
{
"values": [
{
"id": 1,
"entryDate": "12/12/12",
"purpose": "yes",
"workStream": "BASIS",
"details": "Details",
"benefits": "Benefits",
"plannedImplementationDate": "12/10/12",
"proposedBy": "bxp8561"
},
{
"id": 14,
"entryDate": "12/12/13",
"purpose": "no",
"workStream": "BASIS",
"details": "New",
"benefits": "money",
"plannedImplementationDate": "12/1/13",
"proposedBy": "bxp8561"
}
]
}
]
}

Viewing all articles
Browse latest Browse all 1817