DBTreeView setExpandNode

Hi all,

I’m using servoy 6.1.2 with java 1.6 u32 in windows 7.

I’ve built a tree with the DBTreeView Bean but when I try to use the method “setExpandNode”, it doesn’t work.

My target is to make a search into the tree and to expand the related branch.
To do that, I make a find/search into the same foundset I’ve used for fill the tree. I’m sure that the pk I’m tring to load exists into the tree.

I’ve tried also to use it with hardcoded arguments:

elements.orders_tree.setExpandNode(["100+ZB0"],true)

As you can see, my pk is a String,. Can this prejudice the method-results that, maybe, does not understand a string-pk?

I’ve tried also to fill the property “selectionPath” as follows:

elements.orders_tree.selectionPath = ["100+ZB0"];

but this one also doesn’t work.

Any Idea?

Thanks

Riccardo