All Select controls, including the MultiSelect and the Table controls (if use Single or Multi-selection mode) automatically sync up the selection state of the backing list. Select controls that support single selection can also be bound to data that will then contain the value associated with the selection. Lastly, methods like get/setSelectedItem(), get/setSelectedIndex(), etc… exist to simplify working with selection programatically at runtime.
For an example of how to use the SPARK methods referenced above…
Where Table 2 is the “Selected Table” (or whatever you want to bind the selected data to) and Table 1 is your main table
Add that code into the “on rows selected” config option of your main table control.