I'm working on a project where the trending has suddenly stopped working.
- I verified that tag history was working properly by creating a new screen and dragging one of the historized tags onto an easy chart -- it showed the expected trend.
- I looked at the easy chart configuration and that tag's path was "[default]foo/bar." I went back to the screen where trending wasn't working and looked at the path in that easy chart for that tag, it was "foo/bar".
- I checked the project's default tag browser and it was indeed "default", but I added "[default]" to the beginning of "foo/bar" just to see if it would work. It did not.
- I then tried adding [~] to the beginning so that the full path was "[~]foo/bar" and the trending is now working.
Why? I looked up documentation for [~] and found
[~] is used in expression and client tags and means relative to the tag provider of the tag that is being bound (root node). Using the relative path syntax helps avoid problems cause by moving tags and renaming providers.
I looked at the tag providers in the project. There are only 2 and one is disabled. Does this mean that the tags likely originated from the disabled tag provider and were copied into the default tag provider?
When I change [~] to the disabled tag provider's name ( [oldtagprovider]foo/bar ) the trending does not work. Does this mean the tags were not copied from that tag provider?
Could someone please help me understand what [~] is replacing and what functionality it is restoring in this context?