#v1.8.4 not able to access table button column property

1 messages · Page 1 of 1 (latest)

golden cape
#

Just upgrade to v1.8.4, my existing apps gots many error. And I found it's due to some of my table column type is Button, before upgrade I am able to access to value of the button column value by {{Table1.triggeredRow.column1}}, but after upgraded to v1.8.4, it's not able to access button column value by this way. I tried change the button column to Plain text type, it's okay to access value by {{Table1.triggeredRow.column1}}. Is this a expected change of the button column, or it's bug?

full karma
#

Hey this was an expected change, can i know why you were using it in the first place?

golden cape
#

I have click open modal action on the column/cell

#

if use plain text column, no way to add action

#

and I don't want to add a column for action, prefer click on the cell directly

steel spireBOT
#

Hi Sam! Do you want do run an action when the user clicks on a row of the Table
widget? In this case, you can run the action in the onRowSelected event of the
table and access the data using {{Table1.selectedRow.columnName}.

golden cape
#

Actually I have different actions on different table cells. Anyway, I find a workaround to fix this issue, create a custom button column instead of change the original column type to button, then I am still able to access the value by {{Table1.triggeredRow.originalColumn}}

steel spireBOT
#

This is the way to do it. You can also hide the original column from the user to
prevent confusion but maintain access to the data. Does this resolve your issue
@golden cape?

golden cape
#

yes, the workaround works just fine. Thank you