Hi Dojo,
I have a column with a read parameter which is controlled by a toggle button from a write parameter. When I click the toggle button the column value is switching (Enabled / Disabled). For the write parameter I have a QAction row trigger. When I click the button the trigger logs correctly the new value.
But when new data is pushed in the system and I want to sync the new/updated data to the table, I do not get the current data which is shown in the table, so I set it back to the old values. Is it not synced directly in the system or what could lead to this problem? It is not always a problem, sometimes some values are not switching back.
I am fetching the rows like this:
protocol.GetDms().GetElement(protocol.ElementName).GetTable(Parameter.TableName.tablePid).GetRows()
Thanks,
David
Hi,
I had a similar topic about updating a table in automation scripts:
https://community.dataminer.services/question/make-element-update-in-automation-script/
Maybe this helps?
Thanks David.
But this problem is in a protocol. But maybe something similar is available in a protocol.
When I fetch the rows from the table in the row triggered QAction, the value in this cell is also set to the old value. But the row I get directly from the protocol by
protocol.GetRow(Parameter.TableName.tablePid, rowKey)
is already set to the new value of the parameter which was updated by the toggle button.
So maybe the data is not synced to the table already? Is it possible to trigger the sync manually or fetch the current instead of the cached data?