I have what I assume is a silly newbie question, but I can't seem to find the answer to it here or in the docs.
I'm basically building a simple to-do list: I have a SQL table (in Retool Database) with to-dos in it. From that I populate a ListView, where each element of the ListView is a Container with a text view (name
column in the db) and checkbox (done
column in the db).
When a user clicks the checkbox, I want to execute an UPDATE query in the database that sets the done
column to true for the row in question.
For that to work, the change-event handler on the checkbox need to pass the primary key of the DB row that populated its container inside the repeatable to the UPDATE query. How do I do that?