Hi,
I have a table, which its MasterColumn is bind to Folder node (in the context). The Folder node has a recursion node called SubFolder. In the table's OnLeadSelection action I need to retrieve the selected Folder. The problem is that I can only retrieve the selected element of a specific node, and since this is a recursive node, I do not know which is the selected node. Therefore, if I try wdContext.nodeFolder().getLeadSelection(), I always get the same number, even though the selected row in the table is changed.
How do I retrieve the selected element?
Hi Carmit,
I had the same problem when using recursive Tree nodes. When we select any child node in the recursed structure, all the corresponding parents had a the lead selection set, so it was difficult to find out which node has been selected.
I was able to overcome this problem, by adding parameter mapping in the wdDomodifyView by passing the selected element to the Action dynamically, and in the actual action use this element, instead of using the lead select. It worked fine for me.
Does this help.
Cheers,
Balaji
Add a comment