Fill Perspective Tree component with a dataset?

See if my post below is of any help. In my example I'm setting up the tree for use as a navigation tree / site menu.
You will need to script the creation of the structure.