This is related to at least one other post - per chance by a colleague - but sufficiently different (I think) to keep separate.
I have two attrributes defined as floows in the parent element template via String Builder.
Tag Name 1 = "%..\Element%";'Client Tag Delimiter';"%Element%";'Client Tag Delimiter';"%..|Attribute%";
Tag Name 2 = "%Element%";".";"%..|Attribute%";
Depending upon the value of a third attribute, Flag, I wish to copy one or other of the above to a forth attribute (that is then used as a PI Point name).
if Flag = 1 Then
Default Tag Name = Tag Name 1
else if Flag = 2 then
Default Tag Name = Tag Name 2
Yes, I could create an AF Table in which each individual tag is defined for all elements in which it appears. But in my case the tag names are based upon the element structure defined via String Builder. There is no need to define each tag individually.
Incidentally I already use a Table Lookup to see whether the customer has defined their own tag for this attribute via a look-up table. If they have It use that, otherwise I use Default Tag Name. What I'm now attempting to do is for Default Tag Name to be one of several string values.
- AF Analytics - but this is a one-time configuration - so would intrduce unncessary overheads.
- Change the value in the element template - no that's what I'm trying to avoid as this would mean we would have different templates for different customers.
- Confifure via PI Builder or some other client application.
Any ideas? Am I simply being too ambitious?