on 03-18-2010 4:58 AM
Hi Friends
I created a web dynpro application which displays a table with multiple records.
I added a button "REMOVE" to delete the selected rows from the table.
It is working good if I select single row, but if I want to delete more than one row I am not able to select the rows and how can I delete all the selected rows.
Thanks
Change the selection property of node binded to table as 0..n.
This will allow you to select multiple rows.
To get multiple rows, use get_selected_elements method of if_wd_context_node.
Code for your reference :
DATA: wd_node TYPE REF TO if_wd_context_node,
wa_temp TYPE REF TO if_wd_context_element,
lt_temp TYPE wdr_context_element_set.
wd_node = wd_context->get_child_node( name = 'NODE' ).
CALL METHOD wd_node->get_selected_elements
RECEIVING
set = lt_temp.
LOOP AT lt_temp INTO wa_temp.
wd_node->remove_element( EXPORTING element = wa_temp ).
ENDLOOP.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Change the SELECTION property of the node to 1..N.
You can select Multiplpe rows by Pressing Control key
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 | |
10 | |
10 | |
10 | |
7 | |
6 | |
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.