Skip to Content
author's profile photo
Former Member

Select all of rows of tableView by code

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

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • Oct 04, 2005 at 04:00 AM

    cl_htmlb_manager=>check_tableview_all_rows(

    rowcount = rowcount

    request = request

    id = <tableviewid>

    check = 'X'

    • KEYTABLE = KEYTABLE

    ).

    Regards

    Raja

    Add comment
    10|10000 characters needed characters exceeded

    • Thomas Jung Maximilian Schaufler

      That is one thing that Brian and I are trying to do with the upcomming book on BSP. As Brian puts it "we are trying to reveal the black-magic voodoo behind the scenes of BSP".

      That is why we started with the lowest layer (HTTP itself) and worked our way up through the BSP ICF Handler layer and into some of these undocumented BSP utility classes.

      That is not to say that we documented every single HTMLB element in the book - but we did cover some of the overlooked ones - BTF, IGS, Portal Eventing, etc.