HI guys, i need to create a dynamic name for an attribute. Is this possible? I tried to use the same code as data reference but it didn't work.
Is this possible or the name is a static field?
The name is dynamic during creation (you can call it what you want) whether manual or automatically generated.
However, the name is then static once created.
You would be better to have another Attribute called Sensor Name, which can use the String Builder and be dynamic.
But this attribute are in a template, i need all time i will use this template for an element automatically the attribute takes the element name.
For example if i use this template in a element call 4hy-451 the attribute template will be automatically 4hy-451
Not sure I totally follow...but you can add an Attribute Template called "Name" to the Element Template. Name then uses the String Builder Data Reference with Config "%Element%". Now the Attribute Template for "Name" when instantiated will always be that of the Element.
Sorry, I try to explain the problem in a better way.
I configured the Attribute Templates in the following way.
I would like to create a PI Vision collection based on that configuration. Is it possible to set a dynamic name for each attribute in order to have the Element name in the PI Vision's legend?
e.g.: instead of "Sensore1" I would like to see "HY-001" (the element name)
Then I would make them Child Elements (based on a Template) of that Element. Then you can create a Collection in PI Vision.
Rather than creating a set of Attributes in a template that may or may not be used.
I was trying to avoid child elements to have a standard, dynamic template that can be used anywhere.
In this case I would not be force to create/name all of them one by one.
Is this possible?
Retrieving data ...