cancel
Showing results for 
Search instead for 
Did you mean: 

URGENT : HTMLB Tableview selected rows

Former Member
0 Kudos

Hi ,

I use in a BSP a tableview in order to show content of a dictionnary table ( as MARA ) and I want to let user select or unselect all the rows by clickin on a button .

Does somebody konw how to do it .

Thanks in advance

PS : In my BSP i don't use MVC solution .

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Bertrand,

if you have a look at bsp sample application there is a sample for tableview not

often but sometimes these samples are useful.

They do it like this:

    if event->id = 'multicheck'.

      CL_HTMLB_MANAGER=>CHECK_TABLEVIEW_ALL_ROWS( rowcount = n

                                                  request = request

                                                  id = 'sflight1'

                                                  keyTable = keyTable

                                                  check = 'X' ).

    else.

      CL_HTMLB_MANAGER=>CHECK_TABLEVIEW_ALL_ROWS( rowcount = n

                                                  request = request

                                                  id = 'sflight1'

                                                  keyTable = keyTable

                                                  check = '' ).

    endif.

if you built it in let me know if it works...

Regards Matthias

Former Member
0 Kudos

Thanks a lot Matthias,

your solution solve my problem , can you tell me in wich SAP sample you find it because i search for it in my system .

Regards

Bertrand

Former Member
0 Kudos

Hi Bertrand,

Application HTMLB_samples shows a sample for every element... have fun with that.

Matthias

Former Member
0 Kudos

Hi Matthias,

Thanks a lot for your help, but now i got another problem with tableview and perhaps you should help me again.

Users want to have some rows of the tableview pre-selected .

My tableview is in design 2003 and MultiSelect mode .

I try method cl_htmlb_manager=>check_tableview_row but nothing is done .

I try method cl_htmlb_manager=>check_tableview_all_rows but the result is all the content of the table is selected not only rows that i send in parameterI don't realise what users want.

Do you have any idea to succes my user's request ?