on 03-19-2008 2:01 PM
Hi,
I am using the component salv_wd_table , the filter icon get enabled only if i click the Filter link. I want the Filter to be as default in the display.
Regards,
Ramanan.P
Hi,
Try using this piece of code
DATA: lr_salv_wd_table TYPE REF TO iwci_salv_wd_table,
r_table TYPE REF TO CL_SALV_WD_CONFIG_TABLE.
get reference to ALV component interface
" Give your component name here instead of alvmain
lr_salv_wd_table = wd_this->wd_cpifc_alvmain( ).
get ConfigurationModel from ALV Component
wd_this->r_table = lr_salv_wd_table->get_model( ).
data: lr_standard_functions type ref to if_salv_wd_std_functions. lr_standard_functions ?= wd_this->r_table.
lr_standard_functions->set_filter_filterline_allowed( ABAP_true ).
Hope this solves your problem.
Regards,
Ismail.
Edited by: Ismail Basha on Mar 21, 2008 3:44 AM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ismail
IF_SALV_WD_STD_FUNCTIONS~SET_FILTER_FILTERLINE_ALLOWED has one importing parameter which has default value abap_true. So your solution might not change anything.
This method is used to allow filtering in ALV table or not. In ALV, filtering for columns come with that filter link.
Regards
Saurabh Garg
User | Count |
---|---|
84 | |
10 | |
9 | |
8 | |
6 | |
6 | |
6 | |
5 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.