Skip to Content
avatar image
Former Member

getLeadSelection when using a recursive MasterColumn

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?

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    avatar image
    Former Member
    Nov 01, 2004 at 04:19 AM

    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 comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Just to give you some hope for the future: in the next release, we will provide the node element selected by the used as an event parameter. Via parameter mapping, it will be very easy to access (just like it is for the tree).

      Bye,

      Thomas