on 03-28-2011 1:25 PM
Hi Experts,
there is an alv table. The entries are not editable, they're read_only.
But the table looks like it is editable. The cells color is white. But the table should look like a not-editable table, for example like not filled rows in alv table.
I tried with this kind of coding:
lr_column = lr_column_settings->get_column( 'TIME' ).
CREATE OBJECT lr_input_field
EXPORTING
value_fieldname = 'TIME'.
lr_input_field->set_read_only_fieldname( value = 'READ_ONLY' ).
Unfortunately its not working.
Is this the correct way or should I try to change the cells color?
Thanks in advance,
Tan
Hi Tan,
You want to make complete table readonly or some cells as read only??
lr_column = lr_config->if_salv_wd_column_settings~get_column('OBJID' ).
CREATE OBJECT lr_link.
lr_link->set_text_fieldname( 'OBJID' ).
lr_column->set_cell_editor( lr_link ).
lr_column->set_read_only('x'). // try with X or ABAP_TRUE.
check this..
Cheers,
Kris.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi,
Whole table is set read only by default. Even you can use the below code :
You will get the object of CL_SALV_WD_CONFIG_TABLE when you insytanatiate alv and call the get_model method
data lo_config type ref to cl_salv_wd_config_table.
lo_config->if_salv_wd_table_settings~set_read_only( ABAP_TRUE ).
Regards,
Madhu
your table should have a property such as "Design" where you can change the color of the cells. You can set it or even bind it to a variable.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
80 | |
9 | |
9 | |
7 | |
7 | |
6 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.