Skip to Content
0

Issue with focus row on table when clicking a link action

Oct 19, 2016 at 08:14 AM

70

avatar image

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

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

2 Answers

Tobias Hamdorf Oct 20, 2016 at 12:12 PM
1

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


Show 1 Share
10 |10000 characters needed characters left characters exceeded

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)
0
Tobias Hamdorf Oct 21, 2016 at 02:43 PM
0

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

Share
10 |10000 characters needed characters left characters exceeded