Refresh Tag Browse Tree

Hi,

I want to refresh a tag browse tree when I’m press a button.
I’ve put a the script “system.db.refresh(event.source.parent.getComponent(‘Tag Browse Tree’),“data”)”, on a actionperformed button, but nothing happen.

Could you help me please?

Thanks

This is mentioned in the User Manual, this worked for me:

event.source.parent.getComponent(‘Tag Browse Tree’).refresh()

1 Like

I think this is from the Ignition SDK and it only works in vision. I'm trying to do the same thing in Perspective and haven't been able to yet! Any new thoughts?

I just had an amazing idea and it worked! If you reset the path that the Tag Browser Tree is point to it will force it to refresh!
Example: I have button with an onClick Scrip:
self.getSibling("TagBrowseTree").props.root.path = "[edge]Motors"