on 03-17-2008 5:11 AM
hi,
i am using a recursive tree structure,
i need to get the index value of a selected node in a tree structure,
can any one help me?
thanks in advance,
Regards,
Meyyappan
Hello Ganesh,
just add parameter CONTEXT_ELEMENT of type IF_WD_CONTEXT_ELEMENT to the action handler. It
contains a pointer to the currently selected context element. From it, you can get the index.
Best regards,
Thomas
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hello Thomas,
thanks for ur reply ,
i had added tat parameter CONTEXT_ELEMENT of type IF_WD_CONTEXT_ELEMENT to the action handler.
It's giving the index but my requirement is to fetch the index of the parent node for this current node
this context_element gives the index value of this node level only not its parent node.
Regards,
Ganesh
Hi ,
In the Action handler eg. OnAction of the tree .. check the object WDEVENT u will get the index or the context element..
Regards
Yash
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.