Skip to Content
avatar image
Former Member

LinkToAction inside TreeByNestingTableColumn

Hello Guys!

Does anybody knows how to get a reference to the context element using the onAction method of the LinkToAction UI element inside a TreeByNestingTableColumn?

The onAction is being called but I cannot get the current context element.

In the wdModifyView I did the source mapping for LinkToAction element but a runtime exception is being thrown.

I'm using NW SP12.

Best Regards,


Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    avatar image
    Former Member
    Dec 14, 2005 at 10:39 AM


    Use wdContext.node<yourRecursiveNode>().getTreeSelection();

    If this doesn't work for onAction handler, save reference in IWDTable onLeadSelect (using same code)

    Additional details and example you can get here: /people/valery.silaev/blog/2005/06/20/master-of-columns-part-ii

    Valery Silaev

    EPAM Systems

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      > Sadly, we found no workaround so far.


      > Since SP14 (probably Sp13? -- we skip this version

      > rather quickly 😉 there is a possibility to add

      > mapping for all cell editors events:

      > lnkToAction
      >   .mappingOfOnAction()
      >     .addSourceMapping
      >     (
      >       "nodeElement", 
      >       "<name-of-your-on-action-param>"
      >     );


      > Action param has type of node element (i.e.

      > I<ControllerName>.I<NodeName>Element). So you may

      > access it directly. And even set tree selection

      > yourself.


      > Valery Silaev

      > EPAM Systems


      Thanks Valery!!!! 😀