cancel
Showing results for 
Search instead for 
Did you mean: 

Select all of rows of tableView by code

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

athavanraja
Active Contributor
0 Kudos

cl_htmlb_manager=>check_tableview_all_rows(

rowcount = rowcount

request = request

id = <tableviewid>

check = 'X'

  • KEYTABLE = KEYTABLE

).

Regards

Raja

Former Member
0 Kudos

Thank you Raja for your responce. It solves my problem. I have another question: where can I get documentation for class cl_htmlb_manager. Clicking on class name opens class definition, there is button "Class documentation", but if I click on it apears "Document cl_htmlb_manager not avaible in language EN". I tried it in DE language too, problem remains same.

Best regards,

Josef

maximilian_schaufler
Active Contributor
0 Kudos

Overall there is very little documentation about these classes or HTMLB elements, I don't think they ever caught up the development status with the docu.

So looking at the source code is most likely the best docu you can get (but it makes you learn a lot).

athavanraja
Active Contributor
0 Kudos

Sometime back Thomas Jung wrote a weblog about all the utility calss for BSP

its a good one for reference for all the utility classes.

/people/thomas.jung3/blog/2005/01/13/bsp-utility-classes

Regards

Raja

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

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.

Answers (0)