cancel
Showing results for 
Search instead for 
Did you mean: 

Get index of row selectable in table in web dynpro abap

Former Member
0 Kudos

Hi all,

How i get the index for the row in a table which i selected .

Help me.

Points are Sured.

Sanket sethi

Accepted Solutions (1)

Accepted Solutions (1)

Yashpal
Active Contributor
0 Kudos

Hi ,

in the wdevent parameter of the action get the selected element

eg

context_element type ref to if_wd_context_element .

context_element = wdevent->get_context_element( 'CONTEXT_ELEMENT' ).

then call the get_index method..

context_element->get_index( ).

Regards

Yash

Former Member
0 Kudos

Hi Yashpal,

In get_context_element( 'CONTEXT_ELEMENT' ) the context element name is the

Node name of the table in the context or somthing Else.

Reply Soon.

Sanket sethi

Yashpal
Active Contributor
0 Kudos

in the wdevent object the CONTEXT_ELEMENT is a attribute which represent the context element in which action is performed means in table the selected element ...so write CONTEXT_ELEMENT ..

Regards

Yash

Answers (2)

Answers (2)

Former Member
0 Kudos

You can use 'get_selected_elements' method of 'if_wd_context_node' to get the selected table values from table control.

Receiving value set must be having type 'wdr_context_element_set'.

Regards,

Jyoti...

Former Member
0 Kudos

hi sanket......

you can use the method get_lead_selection of the interface if_wd_context to get the selected rows....

--regards,

alex b justin