Here is the method that runs in the form with the dbtreeview bean:
elements.dbtreeview.selectionPath = new Array( 62, 66 );
application.output( elements.dbtreeview.selectionPath.join(",") );
I expect the output to be 62, 66, but the output is whatever is the path to the currently selected node. Nothing in the tree changes as a result of running the method. From the code example, it looks like this should work, but it doesn’t.
Steve in LA
I didn’t get this to work either, although I only tried to select one node (I think only this option is supported).
I still don’t manage to get this working. This code seems to show where the problem lies:
var path = new Array(1, 6);
var path2 = elements.dbtree.selectionPath; // Returns [1,6]
elements.dbtree.selectionPath = path2; // works
elements.dbtree.selectionPath = path; // doesn't work
So somehow what we create using new Array is not the same as the Array thrown back by the bean property.
Can this be fixed or could someone illustrate how to create the right kind of array?
Thanks
Patrick