Skip to Content

cl_htmlb_manager=>check_tableview_all_rows( ) not working for SELECTING


We have a tableView that is filled on selecting a value from a dropDownListBox.

The internal table for TV is filled in the event handler OnInputProcessing for the event onSelect of DDLB.

Now when the TV is displayed , i need it to display ALL rows SELECTED . used the following method:

describe table itab_materials lines total_rows.
rowcount = total_rows
request = request
id = 'material'
check = 'X'
) .

This code is also written for onSelect of DDLB , itab_amterials is the itab for TV.

But still when the TV showup rows are not selected.

What is the problem with above code?



Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jun 17, 2008 at 06:08 AM


    I had a similar requirement in which i have used the following code:

                LV_ROWCOUNT TYPE I.
                                                        REQUEST  = REQUEST
                                                        ID       = 'tv'
                                                        KEYTABLE = KEYTABLE
                                                        CHECK    = 'X' ).

    and also ensure if the mode of selection is multiselect or multilineedit.

    hope this helps..



    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jun 17, 2008 at 06:02 AM

    its not working because you are trying to use cl_htmlb_manager=>check_tableview_all_rows(

    even before the table is displayed.

    in your case after the user selected some entries in the DDLB you are building itab for tableview. while showing the tableview use it attribute "selectedRowIndexTable" or "SelectedRowKeyTable" to preselect the rows.


    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.