cancel
Showing results for 
Search instead for 
Did you mean: 

LinkToAction in a Table Element

MarkusKlein
Active Contributor
0 Kudos

Hello everybody,

how can i determine the row in a table for which the respective LinkToAction Element fired the event onAction?

Regards,

Markus

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Markus,

Lead selection occurs before onAction -- so you may refer wdContext.nodeYourTableNode().currentYourTableNodeElement() inside action handler.

For more advanced options read https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/c092333b-0601-0010-e7af-8c2...

Valery Silaev

EPAM System

http://www.NetWeaverTeam.com

Former Member
0 Kudos

...and the row number here is <i>index()</i> of currently selected element.

VS

MarkusKlein
Active Contributor
0 Kudos

Hello Valery,

do i have to set the Lead Selection Change manually? Because using the code you provided to determine the current selected row index doesnt work. It always give me the leadselection row back which is 0 at the start. Clicking any of the LinkToAction Elements doesnt change the lead selection, so the index remains 0.

regrads,

Markus

Former Member
0 Kudos

Once you select any particular row that row becomes your LeadSelection. Make sure that you have not set the selection mode of the table to none.

MarkusKlein
Active Contributor
0 Kudos

Ok i had the property "enabled" of the table element at "false". The reason was i didnt want any other column but the column with the LinkToAction Elements to trigger a LeadSelection Change. This doenst work obviously. So how can i achive that?

regards,

Markus

Former Member
0 Kudos

Markus,

Check this document (link is posted already above): https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/c092333b-0601-0010-e7af-8c2...

If your NW support this, then solution is obvious from tutorial (via IWDNodeElement parameter), otherwise you are out of luck: the only option is to allow row selection on any cell (btw, you may have read-only table instead of disabled).

VS

MarkusKlein
Active Contributor
0 Kudos

Hello Valery,

unfortunately we are still on SP9 Anyway, thank you for your help

regards,

Markus

Answers (0)