Skip to Content
Jul 04, 2012 at 12:18 PM

How to get the selection in a table when user presses a button?


Hi, I have a question:

I've got a table ui element with a field NAME as one of the columns of the table. I also got a button for each line in the table.

When the user presses this button on one specific line in the table I would like to read the attribute NAME for this line. But in order to fulfill that

I need to select the item/line (set the selection) before pressing the button, if not selecting the item first I always get the NAME of the item selected.

The user does not want to select the item first, only click on the button.

Anyone who knows how to read the correct value of column name of the line from where the user has clicked on the button?

Thank you and regards Lena