I have a table with a column of type "Button". When I click that button, I want to call a query with the row index of that button (or the sourceRow of that button).
My table has row selection set to "None", as this table displays data, and I don't need to allow row selection for any purpose.
The problem is that, when I try to pass {{ i }} as an additional scope variable to the query, its value is always "0", no matter the row of the button I clicked.
I wonder if there is a way of passing the index of the row clicked to the query, without an awkward workaround.
An alternative, which may qualify as an awkward workaround , is to add a hidden column and use {{ i }} as mapped value, then you can use {{ currentSourceRow.myhiddencolumn }} as reference to pass the index value.
The problem with this solution is that currentSourceRow will always refer to the first row in the table (if I keep row selection as None).
To be honest, what bothers me about allowing row selection is just the blue background color that the selected row adopts, as it confuses my users. Is there a way to disable that style?
You should be able to map your source data's PK (if it exists) against the current row's value. Whatever is providing the data to the table isn't going to change so you just need something like: