on 07-08-2009 7:21 PM
Hi experts,
I created ALV using SALV_WD_ALV component and i am using the standard select all and deselect all. I want to know which event is called on select_all and also when i do a multiple select using shift/control keys.
I know that ON_LEAD_SELECTION is called when i select a single row with row selected index and also when i deselect all with index 0. but this is not getting called/triggered when i click on select_all or select multiple rows (using shift button)..
Please help me on the above issue.
Thanks in advance.
Regards
Divakar
Hi,
SET_SELECTED method of IF_WD_CONTEXT_NODE is used for setting the row selected
here is one example for you create a new button then write this code then all the rows will be selected .
data lo_nd_node1 type ref to if_wd_context_node.
data lo_el_node1 type ref to if_wd_context_element.
data ls_node1 type wd_this->element_node1.
data line_count type i.
navigate from <CONTEXT> to <NODE1> via lead selection
lo_nd_node1 = wd_context->get_child_node( name = wd_this->wdctx_node1 ).
*if lo_nd_node1 is not initial.
call method lo_nd_node1->get_element_count
receiving
count = line_count.
do line_count times.
lo_nd_node1->set_selected( index = sy-index ). enddo.
Regards,
Shaik Shadulla
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
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.