cancel
Showing results for 
Search instead for 
Did you mean: 

Get values of the row when user clicks on a column of Table control

Former Member
0 Kudos

I want to know the values of the row of the table control when user clicks on a column.

Is there any event for a column click?

how to get the index of the row when the user clicks on a column of the table control?

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member205703
Participant
0 Kudos

Hi John ,

Use the property <b>onLeadSelect</b> of the table , create an action for this property . In action action handler method do the following coding


Data: lr_elem type if_wd_context_element.

lr_elem = wdevent->GET_CONTEXT_ELEMENT(  name =  'CONTEXT_ELEMENT'  ) .

After this get the static attributes of the element.

Regards

Amol

Former Member
0 Kudos

hi john...........

you dont have a method for column select.

but you can select a column and have a button to be clicked.

then you can use the method get_column in the class cl_wd_table to

get the column id nad its index.

once you get the colukn you can read the corresponding values from your internal table.

---regards,

alex b justin