Perspective Views - Efficient Tag Access

Continuing the newbie questions here.

What is the best way to gain access to a set of tags to be used in View scripting. In my immediate case all tags are in a UDT. I feel that I am using system.tag.read/write way too much and there must be an easier way.

My thinking is to bind my opc tag to a custom properties…might work. Yes?

I think I can answer my own question here.

https://docs.inductiveautomation.com/display/DOC81/Perspective+Component+Properties#PerspectiveComponentProperties-CustomProperties

Yes, in general bindings are preferred to tag read/writes. Indirect bindings allow you to use bindings for most tag access in both directions.

Be aware that writing to bidirectionally bound tags will show the Good_WritePending quality when writing to its value. If you’re using the component in a flex container, this might have undesired effects such as moving components around and then back again once the overlay disappears

2 Likes