on 01-03-2008 8:20 PM
hello folks,
can someone suggest me how to enable multiple selection of rows in an alv table without using ctrl key.
Thanks,
Sean
Hi Sean,
I think you will have to add the following coding.
You will have to declare an attribute ALV_CONFIG_TABLE of type CL_SALV_WD_CONFIG_TABLE explictly.
get ALV component
DATA:
lr_salv_wd_table TYPE REF TO iwci_salv_wd_table.
lr_salv_wd_table = wd_this->wd_cpifc_alv( ).
wd_this->alv_config_table = lr_salv_wd_table->get_model( ).
DATA:
lr_table_settings TYPE REF TO if_salv_wd_table_settings.
lr_table_settings ?= wd_this->alv_config_table.
lr_table_settings->set_selection_mode( CL_WD_TABLE=>E_SELECTION_MODE-MULTI ).
I think this snippet should close your problem.
Regards
Raja Sekhar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Raja Sekhar,
The problem when i use CL_WD_TABLE=>E_SELECTION_MODE-MULTI
is that the first row of the alv table is automatically selected and to select other rows i still need to press the control key.
and the problem with the statement
CL_WD_TABLE=>E_SELECTION_MODE-MULTI_NO_LEAD
is that no rows are defaultly selected but to select multiple rows i still need to hold the ctrl key.
can you please suggest me something where i can select multiple rows without holding the ctrl key.
appreciate your thought.
Thanks,
Sean
Edited by: sean paul on Jan 8, 2008 11:06 PM
User | Count |
---|---|
101 | |
13 | |
13 | |
11 | |
11 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.