DBTreeView could be a huge feature for Servoy allowing us to make the sophisticated trees our users expect (see the tree in the Servoy Editor as a great example of what we need).
To do this, all we need is a status property for each tree member referenced by pk. This would show whether a member is open, closed, or empty. We need a function to be able to set the status accordingly. Perhaps:
getTreeMemberStatus(pk) This would return: open, closed, or empty
setTreeMemberStatus(pk, status) change property (as if clicked)
With this we could:
-
open/close all nodes by looping through or just the one or ones you want
-
save or reload a specific configuration of open and closed nodes
-
add new a leaf/node under another, save the config, reinitialize, then reload with new node/leaf in place. This stops having to reinitialize and thereby close the entire tree after changes.
Throw in a sort capability, some documentation, and a way to support N-M relations and this would be a killer feature of Servoy that everyone would love to use.
Notice I didn’t even mention drag and drop capability??? That would be just too cool!