I have two table components on a window (tblCellar,tblChosen). One is populated from a database. The other one table I want to populate as the user clicks on rows from the first table. I have the following:
if event.clickCount == 2: row = event.source.selectedRow table = event.source.parent.getComponent('tblCellar') ID = table.data.getValueAt(row,0) fermenter = table.data.getValueAt(row,3)
so that I have the values for ID and fermenter that were selected. I want to add these or append them to the table tblChosen.
On startup tblChosen is empty, but as the user selectes the fermenters he wants to work on, he can add them to the table and keep building up the list.