on 06-16-2008 2:43 PM
Hi,
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.
cl_htmlb_manager=>check_tableview_all_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?
Thanks,
Anubhav.
Hi,
I had a similar requirement in which i have used the following code:
DATA: KEYTABLE TYPE STRING_TABLE,
LV_ROWCOUNT TYPE I.
CL_HTMLB_MANAGER=>CHECK_TABLEVIEW_ALL_ROWS( ROWCOUNT = LV_ROWCOUNT
REQUEST = REQUEST
ID = 'tv'
KEYTABLE = KEYTABLE
CHECK = 'X' ).
and also ensure if the mode of selection is multiselect or multilineedit.
hope this helps..
Regards,
Sneha.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
Raja
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Is there any other method?
Thers no attribute selectedrowindextable or selectedrowkeytable in the class CL_HTMLB_EVENT_TABLEVIEW
but we have PREVSELECTEDROWINDEXTABLE and PREVSELECTEDROWKEYTABLE or SELECTEDROWKEY and SELECTEDROWINDEX
And i m still not getting in which event do i need to call that method?
A code snipet will be of great help!
Thanks,
Anubhav..
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.