Skip to Content
author's profile photo Former Member
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 a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on 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 a 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

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.