I am able to insert tag name but same code I applied to insert tag value. I am getting error. I am trying in script console.
tags = system.tag.browse("[default]")
for t in tags:
value + = system.tag.readBlocking([tags])[0].value
query = 'INSERT INTO Table (CHANGED_VALUE) VALUES (?)'
system.db.runPrepUpdate(query, [value])
This script is only for testing purpose.
In my table, machineId, ordernumber, tagname, changedtime, changedvalue columns are there.
on trigger tag, in ValueChange, I can write this script know.
so that whenever trigger value will change I am trying to insert these changed values.
There are two variants depending on whether you are running in the gateway or in a Vision client / Perspective session. You're on the gateway.
and at the bottom of that section,
The database parameter is not optional. (Designer's script console gets the database name from your project properties. The gateway hasn't a clue which database to use unless you tell it.)