Skip to Content

Issue with focus row on table when clicking a link action

Hi all,

I just refer this link :

https://help.sap.com/saphelp_nw73/helpdata/en/56/7d208d6c0f4becb90d446237809c6f/content.htm and have a note : the selection does not change if you click a link,Button, or the expand/collapse icon in a tree column.

Do we have any solution to support click the link and focus the row on table?

Please help!

thanks

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Oct 20, 2016 at 12:12 PM

    Basically you can set the lead selection via action. So every editor that has an action could do it. LinkToAction, button, texfield etc. could do that. You will have to map the current node element to your action and set the index as new lead selection:

    And in your select event, you use this statement to set the selection on the table row:
    wdContext.nodeTable().setLeadSelection(element.index());

    Regards
    Tobias

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Tobias,

      what's the version number of NWDS ? I'm using NWDS 7.31 . when creating the table and LintoAction, the element parameter is auto generated by system or by dev. I try to create table but don't see element parameter.

      Thanks.

      s1.png (9.9 kB)
  • Oct 21, 2016 at 02:43 PM

    You will have to define a parameter (e.g. curElement) of type iWDNodeElement on your action AND your corresponding actionHandler. Then you will see it in the parameter mapping and be able to map.

    /Tobias

    Add comment
    10|10000 characters needed characters exceeded