how to add custom aoData after initialize

how to add custom aoData after initialize

zabaheyzabahey Posts: 5Questions: 0Answers: 0
edited March 2011 in General
Hi All

In my GetBundle(id). I don't know how to set aoData custom name cuttingID with id

Anyone please help me

[code]
$(function () {
var oTables= $('#buldleTable').dataTable({
"sScrollY": "285px",
"bJQueryUI": true,
"bServerSide": true,
"bProcessing": true,
"bPaginate": true,
"sPaginationType": "full_numbers",
"bLengthChange": false,
"iDisplayLength": 20,
"bAutoWidth": false,
"aoColumns": [
{"sWidth": "100px" }, //Bundle No
{"sWidth": "100px" }, //Bundle Size
{"sWidth": "130px" }, //Bundle Cup
{"sWidth": "90px"} //Bundle Qty
],
"bDestroy": true,
"sAjaxSource": "/Service/OutputService.asmx/GetBundles",
"bFilter": false,
"fnServerData": function (sSource, aoData, fnCallback) {
/* Add some data to send to the source, and send as 'POST' */
aoData.push({ "name": "cuttingID", "value": id });
$.ajax({
"dataType": 'json',
"type": "POST",
"url": sSource,
"data": aoData,
"success": fnCallback,
"error": function () {
alert('have some problem');
}
});
}
});
});

function GetBundle(id) {
// I don,t know how to add aoData with id parameters
oTables.fnDraw();
}
[/code]
This discussion has been closed.