cancel
Showing results for 
Search instead for 
Did you mean: 

reading a row without leadselection on click of image

Former Member
0 Kudos

Hi ,

I have a table control in which last column is delete icon. To delete a row i need to click on this delete icon without selecting the any row in the table.

My doubt is how to read a particular row where i click on "delete" icon. table leadselection might be at the first row. But i want to delete the 3rd row. So when i click on delete icon only 3rd should get deleted but not the 1st row.

When the leadselection is not set for a specific row how to read that row...?

Could anybody give me any ideay ?

Regards

Sireesha.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Refer this code. It will give you index of row in which link to Action is clicked .

data: lr_element type ref to if_wd_context_element.
DATA ls_cn_popin TYPE wd_this->element_cn_popin.
lr_element = wdevent->get_context_element( 'CONTEXT_ELEMENT' ).

* get all declared attributes
  lr_element->get_static_attributes(
    IMPORTING
      static_attributes = ls_cn_popin ).
  
 data lv type I.
 lv = lr_element->GET_INDEX( ).

cn_popin is Node name.

Former Member
0 Kudos

Hi Saurav,

Thanks for your reply.

What is wdevent is here ? what is of type ?

Regards

Sireesha.

Former Member
0 Kudos

wdevent is importing parameter for the OnAction of LinktoAction UI.

Former Member
0 Kudos

Thanks saurav.

its working now.

Regards

Sireesha.

Answers (0)