1) Create a row and append rowid or any other data that you want to associate with the row.
var row = Ti.UI.createTableViewRow(); row.rowId = 1; row.myText = "hello world";
2) Add to the table adding clicks of event events:
tableView.addEventListener('click', selectRow);
3) In the selectRow function, get the data.
function selectRow(e) { var rowId = e.rowData.rowId; var myText = e.rowData.myText; myTextField.value = myText; }
source share