How to save table row selection in variable?

Hello,
I created a table in the UI Designer to which I filled it with values ​​from a database and what I want to do is to select a row of the table to display details of the row in another window.
Thank you