on 09-03-2014 1:47 PM
Hi All,
How to get all the lead selected row indexes in Webdynpro ALV.
For suppose, I select 1,3 and 4 rows in ALV I should get all the corresponding Row Indexes.
Best Regards,
Eshwar
Hi,
Use get_selected_elements( ) of context node to get the selected records.
Code:
DATA: lr_node TYPE REF TO if_wd_context_node,
lr_elem TYPE REF TO if_wd_context_element,
lt_elem LIKE STANDARD TABLE OF lr_elem.
lr_node = wd_context->get_child_node( name = 'NODE_NAME' ).
lt_elem = lr_node->get_selected_elements( ).
To get the index loop over lt_elem and then use get_index( ) method
Loop at lt_elem into lr_elem.
lv_index = lr_elem->get_index( ).
* to get row data
call method lr_elem->get_static_attribute
IMPORTING
static_attributes = ls_node.
hope this helps,
Regards,
Kiran
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
How can I get the column name in ALV webdynrpo.
And the first thing is.. Is it possible to select a column in webdynpro ALV ?
If column gets selected I need to capture the column name if some action is done.
Regards,
Eshwar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Eshwar,
Please check the following code for getting the selected rows.
DATA : lt_sel_elem | TYPE wdr_context_element_set. |
DATA lo_node TYPE REF TO if_wd_context_node.
lo_node = wd_context->get_child_node( name = wd_this->wdctx_sflight ).
CALL METHOD lo_node->get_selected_elements
RECEIVING
set = lt_sel_elem.
Regards,
Harsha
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I think this example explains the steps quite well. Pls have a look at
http://www.sapdev.co.uk/sap-webapps/sap-webdynpro/wdp-table-row.htm
Br,
Tim
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
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.