Skip to Content
0
Former Member
Oct 03, 2005 at 04:45 PM

Select all of rows of tableView by code

36 Views

Hello,

I'd like to know how to select all of rows of tableView (<htmlb:tableView>) by code.

For programatically selection of row I tried something like this:

    tv ?= cl_htmlb_manager=>get_data(
                        request      = runtime->server->request
                        name         = 'tableView'
                        id           = 'table1' ).

    IF tv IS NOT INITIAL.
      DATA: tv_data TYPE REF TO cl_htmlb_event_tableview,
      DATA: tv_sel_tab_aux TYPE INT4_TABLE.
            aux TYPE INT4.

       tv_data = tv->data.

       aux = 3.
       INSERT aux INTO TABLE tv_sel_tab_aux.
       tv_data->PREVSELECTEDROWINDEXTABLE = tv_sel_tab_aux.
    ENDIF.

.. but row was not selected. Can anybody give me an advice?

Best regards,

Josef Motl