Hello,
I have a question regarding the Power Chart component.
When I navigate to the Power Chart view from another view, I pass a parameter (tagPath
) to it. Based on this tag path, I want to automatically open and plot the tag in the Power Chart, just like selecting it from the Browse Tags section.
I’ve managed to display the tag using the pens
property, but I can’t find a way to programmatically set the selection in Browse Tags. Is there a way to do this?
Any help would be appreciated.
Thanks in advance
!
You need to set the property tagBrowserStartPath on the PowerChart config
properties..
See PowerChart properties and Forum tagBrowserStartPath
Just be warned that doing this will prevent access to parent folders, if that's of concern
Hello @RodrigoR ,
Thank you for the reply.
I have tried what you have suggested. While setting up the tagBrowserStartPath property, It is just filtering the parent folder alone and also not selected.
Just consider, i am having a params and am passing a tag path. With respect to that the browse tags to be expanded and selected. please find the below image for your reference!
tagpath = "[cms]asset/E_4901_01/1_6_1/X/Ch2_X_Horizontal/ACC"
Whatever tagpath i am passing, that should be expanded and selected.
Can you please support on this part.
As far as I know, that functionality doesn’t currently exist. The tagBrowserStartPath
property only filters the tag tree to show tags that are children of the path you provide — it doesn’t automatically expand or select a specific tag within the tree.
It's Simply not possible. The extensibility of the power charts tag browser is significantly limited. If you want this, youll need to use the tree component and do it yourself. This will give you the chance to add better usability to it as well like search functionality!
You are doing the right thing with the pen property of the Power Chart to plot the tag, but unfortunately the Power Chart component in Ignition currently does not allow programatic selection in the Browse Tags panel. The selection in Browse Tags is intended only for the user to interact with and is not available for binding or scripting purposes. That said, as long as the tag appears on the chart correctly as pens, you will still be able to use it even if that state is not reflected in the Browse Tags view. If you want to provide visual confirmation to the user about the tags they have selected, you might consider adding a custom UI element that displays what has been programmed to use as a pen on the chart.