on 02-14-2008 5:04 AM
Hi,
Only the first entry in the table should be made noneditable and remaining editable.
Thanks and Regards,
Sridevi
Hello Sridevi,
the key to the solving this problem is to bind the enabled or readOnly property of the table cell editors to an context attribute that is part of the dataSource node of the table. Since each element within this node represents a row, you become now able to set
enabled or readOnly on a per-row level.
Best regards,
Thomas
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sridevi,
make it first your table will non editable all the rows.
then use small button, write some code inside that to edit from the second row onwards.
sample code:
IF lo_el_professional_data IS INITIAL.
CALL METHOD lo_nd_professional_data->create_element
RECEIVING
element = lo_el_professional_data.
ENDIF.
l_count = lo_nd_professional_data->get_element_count( ).
l_index = lo_nd_professional_data->get_lead_selection_index( ).
l_index = l_index + 1.
lo_el_professional_data = lo_nd_professional_data->create_element( ).
CALL METHOD lo_nd_professional_data->bind_element
EXPORTING
new_item = lo_el_professional_data
set_initial_elements = abap_false
index = l_index
Regards,
Naresh.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
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.