cancel
Showing results for 
Search instead for 
Did you mean: 

Set focus on a tree node

Former Member
0 Kudos

Hi,

I display a huge tree in a view, so I was asked to add a functionality to search for a specific node.

I've tried using request focus in wdDoModify(..) but it doesn't work.

IWDAttributeInfo attribute =

wdContext.nodeAlberoGerarchia().getNodeInfo().getAttribute

( IPrivateGerarchiaCliente.IAlberoGerarchiaElement.CODICE_BP);

wdThis.wdGetAPI().requestFocus(wdContext.currentAlberoGerarchiaElement(), attribute);

Thanks,

Anita

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

That's a known problem that will be solved in a future release with a new API to scroll a tree node into the visible area.

Armin

Former Member
0 Kudos

Hi!

Has this problem been solved yet? I am using NW 7.3 EHP1 and wdThis.wdGetAPI().requestFocus still does not do anything when used with an attribute bound to a TreeNodeType or TreeItemType.

When I use

treeNodeType.scrollIntoView(false, elementBoundToTreeNodeType)

the tree always scrolls all the way to the end, and with

treeNodeType.scrollIntoView(true, elementBoundToTreeNodeType)

all the way to the top.

Regards,

Tobias