I have action buttons in the last column of the table and when I click on it executes the JS code below:
I want to somehow pass the magic "I" to the queries and use them like this:
...
JOIN customers ON customers.id = accounts.customer_id
WHERE
orders.id = {{ table1.data[i].id }};
I need to access the "id" field from the table where the action button belongs.
How can I pass the value to the query?