Table column1 ,set checkbox .
After I edited this cell, the cell status is still in selected.
Then I click the Top Button , btn script like this:
dataset = system.device.listDevices()
table = self.parent.parent.getChild("Table")
table.props.data = dataset
table.props.selection.selectedRow = None
table.props.selection.selectedColumn = None
table.props.selection.data =[]
Always in selected status.....
I dealt with this recently, and what ended up working was nullifying the selected row and column while leaving the selection data alone. Try removing the final line of your code:
dataset = system.device.listDevices()
table = self.parent.parent.getChild("Table")
table.props.data = dataset
table.props.selection.selectedRow = None
table.props.selection.selectedColumn = None
# table.props.selection.data =[]
what I would do is make it so that on the button the row selection gets set to false and ignore the selectedRow, selectedColumn and data. Add a change script to the row selection so that when the value = false it sets it to true. That way anytime it gets set to false it gets turned right back to true and it will sync up the values. At least that's what I have had luck doing.
from my understanding the selection is shared between the web side and the gateway side and it will fight over values due to race conditions. So basically, you have to turn off row selection and then have something turn it back on preferably with a couple ms between the two or some race conditions can occur. that's why I recommend the change script because then you know the False value was written