Is there a way to define whether a Attribute Data Reference is either a <None> or PIPoint based upon another Attribute setting? I know I could construct something using templates but for lots of <None>/PIPoint binary choices this seems messy.
The AFAttribute.DataReference property is meant to be fixed, as in not dynamic, otherwise you lose so many efficiencies. Certainly PSE doesn't have such customized functionality built-in. Is this other attribute setting something that will change occasionally, or will it change daily or hourly? If were to change occasionally, you could create a "builder" app to make the changes to the database, in which case when a PIPoint is resolved its data source is updated with the attribute. If you thought it would change far more frequently than that, i.e. be truly dynamic, then constantly clearing or setting the data reference and likewise constantly rebinding to PIPoints is not a good solution.
The Attribute will change occasionally. It’s a configuration thing. In some application the Attribute may be a PI Point in others not.
I guess you’re suggesting I create the element template programmatically based upon configuration info in say Excel. I’ve done something like this already and could adapt if you think it’s the best/easiest solution.
Chris Hawkins | Senior Consultant | Process Systems & Solutions
Emerson Automation Solutions | 2 Eggleston Court, Startforth Road , Riverside Park | TS2 1RU | Middlesbrough | United Kingdom
T +4401642773061 | M +4407764929518
Chris.Hawkins@emerson.com<mailto:Chris.Hawkins@emerson.com> | http://www.emerson.com<http://www.emerson.com/>
Knowledge is Power. Use the Emerson experience<http://bit.ly/1TNiptg> to ignite your performance.
Hello Chris - Yes, I think an builder app is the best solution.
Retrieving data ...