When converting an element to a template, suggest substitution parameters based on the ConfigString
Currently, if the ConfigString of an attribute looks like this:
then if you right-click on the element and go to Convert → Convert To Template, the Substituted column will suggest this:
regardless of whether TagName is in the format %Element%.%Attribute%.%ID%.
Instead, consider suggesting substitution parameters based on the ConfigString. For example, if %Server% evaluates to "ServerName" and %Attribute% evaluates to "TagName", then make the following suggestion:
Kenneth Barber commented
Of course, OSIsoft will have to decide what to do when there are conflicts. For example, if the tag name is ABC, the element name is AB, and the attribute name is BC, do we use A%Attribute%, %Element%C, or nothing?
Also, I wouldn't expect such a feature to consider substitution parameters involving ancestors, such as %..\..\Element%, since there would be too many cases to check and these substitution parameters are uncommonly used anyways.