on 10-02-2008 8:12 PM
Hi,
In web dynpro ALV, how to make all coloumns of ALV Editable..
Thanks
Hi,
To make all the columns editable, you can do in this way...
Note:
l_value is ALV table reference.
*Get the Column to which you want to make editable
data:lr_input type ref to cl_salv_wd_uie_input_field,
l_column1 type ref to cl_salv_wd_column,
lt_columns type salv_wd_t_column_ref,
ls_columns type salv_wd_s_column_ref,
lt_node_info type WDR_CONTEXT_ATTR_INFO_MAP,
ls_node_info type WDR_CONTEXT_ATTRIBUTE_INFO,
lv_tabix type sy-tabix,
lr_info type ref to IF_WD_CONTEXT_NODE_INFO.
types:begin of ty_name,
name type string,
end of ty_name.
data: lt_name type table of ty_name,
ls_name type ty_name.
DATA:
node_flights TYPE REF TO if_wd_context_node,
elem_flights TYPE REF TO if_wd_context_element,
stru_flights TYPE if_search=>element_flights .
navigate from <CONTEXT> to <FLIGHTS> via lead selection
node_flights = wd_context->get_child_node( 'FLIGHTS' ).
lr_info = node_flights->get_node_info( ).
lt_node_info = lr_info->get_attributes( ).
loop at lt_node_info into ls_node_info.
ls_name-name = ls_node_info-name.
append ls_name to lt_name.
endloop.
lt_columns =
l_value->if_salv_wd_column_settings~get_columns( ).
loop at lt_columns into ls_columns.
l_column1 = ls_columns-r_column.
lv_tabix = sy-tabix.
read table lt_name into ls_name index lv_tabix.
create object lr_input1
exporting
value_fieldname = ls_name-name
.
l_column1->set_cell_editor( value = lr_input1 ).
endloop.
*Set the table Editable
l_value->if_salv_wd_table_settings~set_read_only( value = abap_false ).
Edited by: suman kumar chinnam on Oct 3, 2008 10:34 AM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
May be the following documents will help you.
Thanks,
Sree.
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 | |
24 | |
12 | |
9 | |
7 | |
6 | |
5 | |
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.