cancel
Showing results for 
Search instead for 
Did you mean: 

Multiiple Selection in Table for Web Dynpro

former_member628395
Active Participant
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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.

Answers (1)

Answers (1)

arjun_thakur
Active Contributor
0 Kudos

Hi Sagar,

Please Refer to the following thread:

I hope it helps

Regards

Arjun