Hi all, I have a list view with a delete button within it. I'm trying to trigger a query and pass an id in via additional scope. How can I do this?
The UI looks like this:
And I'm trying to add a click event to that icon that deletes that specific row. I've tried the following scripts:
DeleteNote.trigger({
additionalScope: {
deletedNoteId: item.id
}
})
and even:
DeleteNote.trigger({
additionalScope: {
deletedNoteId: GetNotes.data.id[i], // i've heard `i` can be available within lists
}
})
neither seem available while i edit nor at runtime. Feedback for retool folks - this seems like a super common case and both these variables should be available in some way honestly.
I assume someone has strategies for making this work since its a pretty common pattern.