not able to insert Datatable rows to load from an array which i created dynamically

not able to insert Datatable rows to load from an array which i created dynamically

sarkariajattsarkariajatt Posts: 1Questions: 1Answers: 0

this is my function from which i am getting an array which looks like
var newx=[
["y","y","y","y","y"],
[x,x,x,x,x],
[x,'Internet Explorer 5.0','Win 95+','5','C']
];

function threshold_table(objid){
for(i=0;i<threshold_dict.thresholds.length;++i){
if(threshold_dict.thresholds[i].objectTypeId==objid)
{
var test=[threshold_dict.thresholds[i].type,threshold_dict.thresholds[i].name,threshold_dict.thresholds[i].id,threshold_dict.thresholds[i].ownerId,threshold_dict.thresholds[i].subsystemId,threshold_dict.thresholds[i].objectTypeId,threshold_dict.thresholds[i].comments,threshold_dict.thresholds[i].recovery,threshold_dict.thresholds[i].month];
threshold_array.push(test);
}
}
}

$('#threshold_table').DataTable({
"data":threshold_array
});

This discussion has been closed.