on 07-15-2009 3:05 PM
Hi,
Does anyone knwo how i can hide a field in a web dynpro by the abap code?
Hi,
Do you want to hide a column
DATA:
lo_model type ref to cl_salv_wd_config_table\
lv_id TYPE string,
lr_column type ref to cl_salv_wd_column,
lt_columns type SALV_WD_T_COLUMN_REF,
ls_columns type SALV_WD_S_COLUMN_REF.
CALL METHOD lo_model->if_salv_wd_column_settings~get_columns
RECEIVING
value = lt_columns.
loop at lt_columns into ls_columns.
lv_id = ls_columns-id.
lr_column = ls_columns-r_column.
case lv_id.
when 'COL1'.
CALL METHOD lr_column->set_visible
EXPORTING
value = cl_wd_uielement=>e_visible-none.
when 'COL2'.
endcase.
endloop.
Regards,
Lekha.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
89 | |
10 | |
9 | |
9 | |
9 | |
6 | |
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.