I’m using a tree view component to select multiple folders, or items, or a combination. The desire is to press a button to open this up, select what you want, and hit a button to go do other stuff with the selected items. However, if you click outside of it or something, the tree view will become invisible and the selections set to what they were before it was set to visible in the first place. I have everything setup so far, its just the part about setting the selections to how they were previously thats messing me up. I’ve tried the PMITreeView function setSelectedPath(path) but unfortunately that isn’t cumulative or anything.
Anyone have a suggestion for how to select multiple items or folders on the tree?
Edit: I did some research on JTree in Java, based on similar components I think and here they say if you can get the TreeSelectionModel, they have a setSelectedPaths() function that does what I want. But I can’t tell how to get Ignition’s version of this, if it exists at all.
One more edit, I think I was mistaken thinking JTree was based on similar things. I wish I was better with Java