I have a data entry page set up to enter data into the database and a table bound to that database to display it. This is on one page of the project. On another page in the same project I have a table bound to the same database so an operator can see the data entered. I had no problems setting it up so the data shows on both sessions but I have a column with a Bool data type I want the operator to use to acknowledge the incoming data. I want the first screen to see the bool column change when the operator acknowledges it. I tried having a runPrepUpdate on the editCellCommit
def runAction(self, event):
valueToSet = event.value
self.props.data = system.dataset.setValue(self.props.data, event.row, event.column, valueToSet)
# Get the updated value and the row ID
row_id = self.props.selection.selectedRow
# Define the query
query = """ Update EVISDATA
Set Inspected = 1
where id = ?
"""
db = "POC_Ignition_Plant_SCADA"
# Execute the query
system.db.runPrepUpdate(query,[row_id],db)
This executes without error but still no change on the first screen.
Any help would be appreciated!