Accessing Multiple Selections in Tree View

Hi Everybody!

I have a tree view with the selection mode set to Multiple-Discontiguous. This works great and allows the user to select multiple nodes on the tree.

Unfortunately, I can’t figure out how to use the multiple selections. The “Selected Item” property only gives the value of the first node selected. Where do I go to get all the nodes that are selected? I don’t care if it is through scripting, or binding, or whatever.

[code]t = event.source.parent.getComponent(‘Tree View’)

print t.getSelectedItems()
print t.getSelectedPaths()[/code]

[quote=“mikehill100”]Hi Everybody!


Have you looked at the component functions getSelectedItems() and getSelectedPaths(). I have not used them but the docs say that they return lists of selected items/path.

Edit: jpark beat me to it but at least I got to post Dr. Nick!