lo hice pero no funciono y no puedo publicarte un error porque no me reflejo uno simplemente la tabla no se deja editar me siento en un callejón sin salida
Caused by: org.python.core.PyException: Traceback (most recent call last):
File "<extension-method onCellEdited>", line 27, in <module>
NameError: name 'self' is not defined
Caused by: org.python.core.PyException: Traceback (most recent call last):
File "<extension-method onCellEdited>", line 27, in <module>
NameError: name 'event' is not defined
If you hover your mouse over the red mark you might get an idea of the error
You have got some fundamental issues with your script. You are writing to rowIndex,colIndex etc...
Try this:
ID = self.data.getValueAt(rowIndex,"id")
query = "UPDATE Agua SET %s = ? WHERE id = ?" %(colName)
system.db.runPrepUpdate(query, [newValue,ID], "AguaControl")
system.db.refresh(self,"data")
Remove all the code that you have an just put that in. Make sure that it is properly indented.
Error invoking extension method.
org.python.core.PyException: Traceback (most recent call last):
File "<extension-method onCellEdited>", line 24, in onCellEdited
TypeError: not all arguments converted during string formatting