Are the parameters for nodes.add:
.ADD(TRIM(Al3Parnt.cPARENT)+'_'+SEQ, tvwChild,TRIM(Al3Parnt.cSELF)+'_'+SEQ,TRIM(Al3Parnt.cSELF))
this:
relative node
where to place the node
key
text
?
>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
.·*´¨)
.·`TCH
(..·*
010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"