selectedCell missing? Alternatives to restrict cell click on table

I'm just learning Retool and have tried to setup a click handler on a table to fill in a text field with the value which then filters the table.

Obviously, I want this to only happen when I click that particular cell. I've seen references to selectedCell, but it's not available according to the debugger/inspector thing. The closest I found to use in Only run when is {{ self.selectedRow.sku == item }} but that's hacky and prone to problems.

Where is selectedCell, or is there a better alternative? This seems so simple.

You can add the event handler to deal with cell click here

If you want to get selectedCell via table1.selectedCell you should enable 'cell selection' of table.
image

image

Toggling that Cell selection from None to Single was the thing I was missing. Thanks!

1 Like