Can figure out how to return a certain data value of the selected cell
Can figure out how to return a certain data value of the selected cell
![mmontoya](https://secure.gravatar.com/avatar/ec8a9b5208e2a5c8e515d72c65aecb81/?default=https%3A%2F%2Fvanillicon.com%2Fec8a9b5208e2a5c8e515d72c65aecb81_200.png&rating=g&size=120)
I need a tableTool button that will open another page, passing a value (usertable.uuk). How do I get the value of usertable.uuk, which is in the data but not a displayed column.
var tableTools = new $.fn.dataTable.TableTools( table, {
sRowSelect: "os",
aButtons: [
{
sExtends: 'select_single',
sButtonClass: 'marginLeft',
sButtonText: 'View History',
editor: editor,
fnClick: function () {
//window.location.href = 'grid_staffHistory.php';
//alert( 'Row index: '+table.row( '.selected' ).index() );
alert( 'primary key: '+table.row( '.selected' ).cell('usertable.uuk').data() );
//alert( 'Row index: '+ editor.get('usertable.uuk') );
}
},
{
sExtends: 'select_single',
sButtonClass: 'marginLeft',
sButtonText: 'Add New Staff',
fnClick: function () {
window.location.href = 'addUsers.php';
}
}
]
} );
$( tableTools.fnContainer() ).insertBefore( '#table_filter' );
});
This discussion has been closed.