Problems with TableTools fnSelect

Problems with TableTools fnSelect

stoyanstoyan Posts: 1Questions: 0Answers: 0
edited February 2013 in TableTools
Hello,
Trying to set selected first row in the master table to be able to have detail table with correct data.
Using JQuery 1.9.1, Datatables 1.9.4, TableTools 2.1.4

The error is:
[quote]

TypeError: data[0] is undefined
firstTr = data.length===0 ? null : data[0].nTr, TableTools.js (line 1077)

[/quote]

Here is the code

[code]
function showassigns(){
var uniInt;

var oTable = $('#orderTable').dataTable({
"bProcessing": false,
"bFilter": false,
"bPaginate": false,
"bRetrieve": true,
"bDestroy": true,
"bInfo": false,
"sAjaxSource": "actions.php?page="+page+"&action=getAssign&token="+$('#egn').val(),
"aoColumns": [
{ "mData": "uniInt" },
{ "mData": "EGN" },
{ "mData": "adate" },
{ "mData": "price" }
],
"sDom": "<'row-fluid'<'span6'T><'span6'f>r>t<'row-fluid'<'span6'i><'span6'p>>",
//"sDom": 'T<"clear">lfrtip',
"oTableTools": {
"aButtons": [],
"sRowSelect": "single",
// "fnRowSelected": function (node) {
// var s = $(node).children();
// uniInt = s[0].textContent;
// dTable.fnReloadAjax();
// }
},
});

var oTT = TableTools.fnGetInstance( 'orderTable' );
oTT.fnSelect($('#orderTable tbody tr')[0]);

uniInnt = '22200000411';
var dTable = $('#detailsTable').dataTable({
"bProcessing": true,
"bFilter": false,
"bPaginate": false,
"bRetrieve": true,
"bDestroy": true,
"bInfo": false,
"bAutoWidth": false,
"sAjaxSource": "actions.php?page="+page+"&action=getDetails&uniInt="+uniInt,
"aoColumns": [
{ "mData": "nomnum" },
{ "mData": "description" },
{ "mData": "side" },
{ "mData": "price" }
]
});


};
[/code]

Hope somebody to point me where is my error.
For sorry, data for the tables are in Bulgarian, so I suppose is useless to post here, but they are checked via Jsonlint and are valid.
This discussion has been closed.