As the title says, I have a view with a Tag Browse Tree component. On that view, I have a parameter called tagPath and I want to be able to pass in a path and it be selected in the Tag Browse Tree automatically… There is a selection property on the component, but it looks like it’s just read-only… When I paste a valid tag path in there, nothing happens (ie tag selection doesn’t change, folders don’t expand/collapse, etc).
Is there a way to do this? The desired behavior would be like the Table component’s row selection or column selection properties, where when you pass in a value, it’ll visibly select that row/column.
Did you paste it directly on the selection property ?
It doesn't work like that if the doc is to be trusted. The selection property should be an object, with 2 keys: mode and values. That last one is where you'd paste the selected value.
If that doesn't work, make sure you're using the format it expects. The easiest way to do that would be to select a tag in the tree in preview mode, see what the selection property looks like, and reproduce it.
That’s exactly what I tried, just selecting something in the tree and seeing the format it appears in. The tree is capable of multiselect so the values property is a list. In my case, the mode is set to single and I’m setting values[0] when the view loads. That part is working, it just doesn’t affect the TBT component in any way.
@pturmel made the introspect script that finds all available methods from a component. I ran it on the TagBrowseTree in Perspective but I don't see anything available that would let you select a path.
If that is the case, big sad. I feel like this should be a feature, I know this component is new (v8.1.16) so hopefully in the future, this functionality gets added.