Ignition tag change script help

Looks like you might have messed up the preformatted text formatting, see Wiki - how to post code on this forum.

You need to guarantee that the transaction group runs and completes before you trigger the table refresh. You are ending up with a race condition between your transaction group and your query against the DB for the latest records.

The only way to guarantee ordering is to script your transaction in a Gateway Tag Change event, and at the end of the transaction script, use system.util.sendMessage to send a message aimed at the project where this view resides.

From there, in the Session Message Handler, use system.perspective.sendMessage with a session scope to trigger the table refresh. Adjust your table message handler to listen at the session level.