cancel
Showing results for 
Search instead for 
Did you mean: 

Selecting table row

0 Kudos

I want to select a table row simply by click on every cell. It looks like its possible to add action to cell editor like IWDTextView ? I don't want to use LinkToAction, it should look like simple text.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

If the table is for displaying data only, and not inline editing, then you can mark the entire table as Read Only, and each entire line becomes selectable.

Walter

Answers (4)

Answers (4)

0 Kudos

Walter is right, table readOnly property is responsible for this thanks

0 Kudos

Login to SAP NetWeawer Administrator and open whatever view where is table. You can select table row by click on table cell, but it is not a button or link to action. Cell editor looks like TextView or Caption but it has onAction event! Wich UI element is there?

Former Member
0 Kudos

Hi,

It doesn't really matter. Defining the entire table to be read-only will achieve what you desire. Try it!

Regards,

Walter

former_member214651
Active Contributor
0 Kudos

Hi,

Create an action for the LeadSelect event of the table and write the below code in the action fpr accessing the selected row of the table:

int leadSelection = wdContext().node<nodename>().getLeadSelection();
if(leadSelection != -1)
{
    wdContext().node<nodename>().get<nodename>ElementAt(leadSelection).get<attribute>();
}

Hope this helps you.

Regards,

Poojith MV

Former Member
0 Kudos

hi,

in implementation u can write the folleowing code :

wdContext.current<TableNode>element.

to access the selected row..