As I remember < g - getting older > I added node.key values as trim(cSelf)+'_'+trans(seq).
*NodeClick
lcSelf = left(Node.Key,at('_',Node.Key)-1)
lnSeq = val(substr(Node.Key,at('_',Node.Key)+1))
select mySource
locate for cSelf = lcSelf and Seq= lnSeq
PS: Node.Key is already unique (TV requirement).
Cetin
>Another question:
>
>In the nodeclick method, how do I get a reference to that node which was clicked? The only properties I can see at that point is ensurevisible and text. I now want to show the child records in a grid beside the treeview, but to do this, I need to be able to link the clicked on node in the treeview with its appropriate record in al3parnt table so I can move the record pointer in the grid...do I need to add an additional value to the node during filltree? Are there any other node properties to work with?
>
>Tracy
>
>
>
>>>Hi Cetin,
>>>
>>>What is the TvUtils class?
>>>
>>>Tracy
>>
>>It's at the bottom of code. Just added there to get text representation to clipboard.
>>Cetin