Hi! I'm a new retool developer so trying to figuring out a lot of things.
This is the situation:
I have a table with an action button that opens a modal and shows the img urls for the specific item I select. The thing is my table also has multiple selection rows so when I try to click a button from a row it breaks because it can't find the data for that specific row.
This is the query I use to get the urls from the db:
I am going to assume that getImagesByPlay is the name for the select query you posted above? Not clear on why you would need the index i in the selectedRow.data[i].id query.
Using selectedRow.data.id should pick up the id in that selected row without using the index [i]
Hi @mateoMaturano! We actually have a bug where i is not accurately defined when using action buttons. I think that may be the issue you're running into here.
We are working on this bug and hope to have a solution soon. In the meantime, the workaround is to use a custom column (column type button).
In this example, I have several rows selected, but when I click the second button in the table, I'm able to return the data for the second row using table1.data[i]
Hi @mateoMaturano! Any chance you can chat us (via the chat button in the bottom right of the screen) or email us at support@retool.com so that we can chat in more detail about your setup? I think I may have jumped to conclusions & misdiagnosed the bug here but I do think we should be able to get this resolved today!
Hi, has this issue been solved?
I was looking for the same solution, return data from a multiple selec tables where I only need data from one row, the one "selected" via clicking on the specific row and not selected via the check-box.
the return tablename.data[i] runs successfully, but not data shown
Any other suggestion is more than welcome. I do want to show that row in a Modal