When a button is clicked on a table, there is no option to "run script", just to run a query.
That would be fine if I could determine which column was clicked on.
The query seems to inherit both 'currentRow' and 'i'- but not which column was clicked on.
If column matters- a different query is needed for each column, which makes maintaining it difficult.
Could you pass the current column into the scope for queries ran?
For example, if I click on the column "date"- then the variable 'currentColumn' would be equal to that string.