on 10-20-2011 6:49 AM
I have a table in my webdynpro application. after displaying it in the browser,when a user selects a particular row and click on a edit button i want that specific row to be changed to edit mode .can anyone help me how to do this??
Edited by: harshith_reddy on Oct 20, 2011 7:49 AM
Hi harshith reddy ,
you can create attribute in your node for read only property for the table colums and get the lead lead selection of the selected line and make it editable field
below is the sample code snippet .
NODE = wd_context->get_child_node( name = NODE_NAME').
element =wd_context->get_element( ).
*default you can set it to read only
NODE->set_attribute( value = 'X' name = 'COLOUMN1' ).
NODE->set_attribute( value = 'X' name = 'COLOUMN1' ).
*make the selected line editable
lv_current_index = lo_nd_dist_table->get_lead_selection_index( ).
if lv_current_index le 0 .
* report message
lv_msg_id = lo_message_manager->report_error_message( message_text = 'Please Select a Line Edit ').
else.
NODE->set_attribute( value = ' ' name = 'COLOUMN1' INDEX = lv_current_index ).
NODE->set_attribute( value = ' ' name = 'COLOUMN2' INDEX = lv_current_index ).
endif.
Regards,
chinnaiya P
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
82 | |
10 | |
10 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.