How to use a Script for the onCellEdited Extension Function?

Your column names do not match within your script.

id = self.data.getValueAt(rowIndex, 'idreferencia')
query = 'UPDATE stock SET %s = ? WHERE idreferencia = ?' % (colName)

1 Like