Skip to Content

Button at row repeater - How to identify what line button was clicked.


I`m developing a WD application using ROW_REPEATER to show a list of items. For each item, I have a button to access another view to show the detail about the line where button was clicked.

My application is very similar with example showed in this link:

How can I pass the ID of the line where button were clicked to detail view?

Many thanks!

Flávio Furlan

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    Aug 07, 2009 at 05:04 AM


    You can proceed as explained in here. In the onAction event of the Button place the following coding:

      data: lr_element type ref to if_wd_context_element,
              lv_index type i.
      lr_element = wdevent->get_context_element( name = 'CONTEXT_ELEMENT'  ).
      lv_index = lr_element->get_index( ).

    Now lv_index will contain the table row number in which the Button was clicked upon.



    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Flavio Furlan

      I made the same initial mistake, it seems like CONTEXT_ELEMENT is indeed a default value.

      Note that this approach also works when using Button controls as Cell Editors inside Table Rows.