Hi there, I'm pretty new to ignition and I was wondering if there is a way to bind a perspective property, that is already bound to something else, to a tag so that the tag reflects the value of that property. I have a project where I need to write the value of the data property of a perspective table to a tag, but the data property already has a named query binding that accesses a DB that contains the table data. Is there a way to accomplish this so that the tag is continuously updated in the background without requiring the user to push the changes? Thanks in advance!
If you have a DB table representing this data, why do you want it in a tag as well? What problem are you trying to solve by putting the data into a tag?
Thanks for responding! I am putting it into a tag so that I can access it in a python resource in webdev so I can make the data accessible to other devices via a URL.
(If this is the correct approach ...)
- Create a tag with Value Source set to Query. Set the execution mode appropriately and add the query to the tag.
- Bind the table's
PROPS.data
to the tag (with a tag binding).
Now you have both Perspective and WebDev able to access the data without a second SQL query.
Thanks for the help!
I feel pretty dumb for not thinking of this before, but it works like a charm. Thank you!
I got bright by asking dumb questions. Keep it up! (Your question wasn't dumb though.)