Hi. I'm new to Retool so bear with me.
Here's what's already working fine:
- I have a tabbed container.
- Inside that tabbed container I have 3 tabs and a modal form (button is hidden).
- The modal is a simple approval form with 3 fields and a submit button that is supposed to allow the user to approve a specific request.
- The 3 tabs are basically very similar tables that show the results of different queries (they all return the same type of data, just different request IDs).
- In each of those tables I have an "Icon" column ("decision").
- Clicking one of the cells of those columns triggers the modal form.
Here's where I got stuck:
I need that single modal (that can be triggered from any of the tabs, specifically from a cell in the "decision" icon column) to know which tab and cell triggered it because I need the request ID to record the decision when the user submits the form.
I already got this to work by having 3 different modals, one for each tab, and then just using the CurrentRow to get the ID but I'd like to have only one modal for all tabs.
Any thoughts? My apologies if too basic...