Hi,
In a project, I have 2 storage providers for tags. I'd like to show tags from only one storage provider in a Tag browse tree. Is that possible?
Thank you!
Hi,
In a project, I have 2 storage providers for tags. I'd like to show tags from only one storage provider in a Tag browse tree. Is that possible?
Thank you!
Sure, by implementing the filterTag
extension function on the component:
https://docs.inductiveautomation.com/display/DOC81/Vision+-+Tag+Browse+Tree+Scripting+Functions
Hi!
Thank you for the answer! But I see that the function filterTag is only getting called when the Tag Browse Tree is in "Realtime Tag Tree" mode. I use the Tag Browse Tree to plot historical data on an Easy chart, so I need it in "Historical Tag Tree" mode
There is the test I run to see when the function filter tag is called :
There is the output when the Tag Browse Tree is in "Realtime Tag Tree" mode:
There is the output when the Tag Browse Tree is in "Historical Tag Tree" mode:
What can explain this?
Maybe I can filter out non historical tag in a Realtime Tag Tree with the function filterTag?
Actually... can you just set the root node path to your tendances
provider?
Thanks, this is indeed the best solution.
@PGriffith, still... why is the function filterTag is not called when the Tag Browse Tree is in historical data mode?
It appears to be intentional. I'm not sure if that's behavior that changed at some point (perhaps in 8.0, when the entire tag system was rewritten) or if it's always been that way.