on 09-28-2010 4:08 AM
Hi all,
Requirement:
1. Change the cell backcolor according to the input value, so I have to create a cell design field to control the color accordingly
2. User should be able to choose which fields should be hidden and which should be displayed, so I can not disable the "Settings" button
If some one can kindly advise me how to hide ALV columns in the grid as well as in the "settings"(right top)?
Any help would be greatly appreciated.
Thanks in advance.
Hi ,,
ALV columns can be hidden using the following logic ,
lo_column TYPE REF TO cl_salv_wd_column,
lo_column = lo_config_table->if_salv_wd_column_settings~get_column( <columnname> ).
lo_column->set_visible( CL_WD_UIELEMENT=>E_VISIBLE-NONE ).
lo_config_table can be obtained using get_model( ) method.
thanks,
aditya.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
In addition to above code, if you delete the column instead of setting its visibility to none then I guess that column should not be visible in settings tab as well.
method would look something like this:
CALL METHOD LR_FUNCTION_SETTINGS->IF_SALV_WD_COLUMN_SETTINGS~DELETE_COLUMN
EXPORTING
ID = ls_column-id.
Regards
Manas Dua
User | Count |
---|---|
95 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.