cancel
Showing results for 
Search instead for 
Did you mean: 

Re: selected row index in table

Former Member
0 Kudos

I have a table column as link to action.

On selecting the link it should navigate to its details(detailed info). Without lead select i might click on the value. in this case how do i get that selected value.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Implement the event onAction of linktoaction and place the following code in the method;

Data: context_element type ref to if_Wd_context_element.

context_element = wdevent->get_context_element( 'CONTEXT_ELEMENT' ).
context->element->get_static_attributes( importing static_attributes = ls_stru ),
" ls_stru will have the contents of the entire row, ls_stru-fieldname will give you the value
Radhika

Former Member
0 Kudos

Hi Radhika,

Thanks a lot. It is exactly what i required.

A small correction in the code.

Data: context_element type ref to if_Wd_context_element.

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

context_element->get_static_attributes( importing static_attributes = ls_stru ).

thanks again

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

As radhika says you can only get the selected rows in table only. If you have to display some other details which are not present in UI table, then you will have get the primary field in the method suggested by radhika. Then you have to use a query to get the necessary fields from DB table using this primary field.

Hope this helps you.

thanks,

Aslam