on 01-02-2009 5:04 AM
Hi Guys,
I am new to ABAP Dynpro and need your guidance. My requirement is that i have two views to navigate.
On the first view I am displaying a table, in which a user can select multiple entries.
Now what i want is, I want to navigate to the next view and display only the rows from the table that user
has selected. As of now it is displaying only the first selected(lead selected) row.
I have created another node in the context to store only the selected rows.
Please guide me on how to go about.
Thanks and Regards,
Sagar
Hi Sagar,
We have the method GET_SELECTED_ELEMENTS of IF_WD_CONTEXT_NODE whcih can be use to get selected elements.
Then We can loop the elements to get the static attributes.
DATA node1 TYPE REF TO if_wd_context_node.
DATA elements TYPE wdr_context_element_set.
DATA element TYPE REF TO if_wd_context_element.
DATA s_data TYPE wd_this->element_node.
node1 = wd_context->get_child_node( name = 'NODE' ).
CALL METHOD node1->get_selected_elements
* EXPORTING
* INCLUDING_LEAD_SELECTION = ABAP_FALSE
RECEIVING
set = elements
.
LOOP AT elements INTO element.
CALL METHOD element->get_static_attributes
IMPORTING
static_attributes = s_data.
ENDLOOP.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
80 | |
24 | |
11 | |
9 | |
7 | |
6 | |
5 | |
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.