Skip to Content
avatar image
Former Member

How can i know the row number of my table is being modified?

HI all,

I have a table in my web dynpro and several columns as checkbox... I put an event OnToggle in these columns.

Do you know any way to get the row or the row number?

If i use the method get_static_attributes return to me the selected row not the modified.

Thanks in advance !

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    avatar image
    Former Member
    Sep 15, 2010 at 01:09 PM

    Try this:

    data table_element type ref to IF_WD_CONTEXT_ELEMENT.
    data row_index type i.
    table_element = wd_event->get_context_element('<ELEMENT_NAME>').
    table_index = table_element.get_index( ).



    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      EDIT: thanks ! is solved, i need to pass CONTEXT_ELEMENT' in the <ELEMNT_NAME>

      This is my code:

      DATA table_element TYPE REF TO if_wd_context_element.
        DATA row_index TYPE i.
        table_element = wdevent->get_context_element('CONTEXT_ELEMENT').
        IF NOT table_element IS INITIAL.
          row_index = table_element->get_index( ).

      Edited by: Husalban RM on Sep 15, 2010 4:53 PM