on 08-12-2014 12:39 PM
Hi,
To make the ALV editable, use the set_read_only( ) and set the value to abap_false.
lr_component = wd_this->wd_cpifc_alv( ).
lr_model = lr_component->get_model( ).
lr_model->if_salv_wd_table_settings~set_read_only( value = abap_false ).
Regards,
Kiran
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hiya,
I've added the following code and it seems to work. Could you just check and then I can close this discussion.
DATA:
lr_alv_usage TYPE REF TO if_wd_component_usage,
lr_if_controller TYPE REF TO iwci_salv_wd_table,
lr_config TYPE REF TO cl_salv_wd_config_table,
lt_columns TYPE salv_wd_t_column_ref.
* Instantiate the ALV Component
lr_alv_usage = wd_this->wd_cpuse_alv_table( ).
* Get reference to model
lr_if_controller = wd_this->wd_cpifc_alv_table( ).
lr_config = lr_if_controller->get_model( ).
*Enable the non-read only fields to be edited.
lr_config->if_salv_wd_table_settings~set_read_only( value = abap_false ).
Thanks!
Sorry but it wasn't working but I've now added this:
** Instantiate the ALV Component
lr_alv_usage = wd_this->wd_cpuse_alv_table( ).
IF lr_alv_usage->has_active_component( ) IS INITIAL.
lr_alv_usage->create_component( ).
ENDIF.
And it seems to work fine now.
Do you know why thsi would have been needed? Wouldn't the Web Dynpro have activated the ALV component?
Hi,
You can follow as suggested in these links.
1) you have to create a read only attribute in your table's node.
2) lo_table_settings->set_read_only( abap_false ).
3) lo_column->set_cell_editor( lr_checkbox ).
this link will help you
http://scn.sap.com/thread/3384402
thanks,
vidyasagar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
98 | |
11 | |
11 | |
10 | |
10 | |
8 | |
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.