cancel
Showing results for 
Search instead for 
Did you mean: 

Passing data between main window and popup window in webdynpro abap

Dev164
Participant
0 Kudos

Hello,

          I have requirement in which i wanna pass selected table row data to popup window for further processing.

Thank you in advance

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Mangesh,

You can use custom controllers or component controllers for that. Have a context node which can be accessed by both the views. Set the data before calling the popup.

Regards,

Sayan

Dev164
Participant
0 Kudos

Hello Sayan,

               I did the same but i thought is there any other way to get it through evnet handlers

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi Mangesh Chaudhari

  

Write the code inside the user action which is triggered for the POP_up Window

Read the value from the table which ur displaying and get the value to the stracture and set the values  to the node which ur displaying for the pop-up Pass the Value to the stracture .

Former Member
0 Kudos
Data lo_el_vbak_display type ref to if_wd_context_element.

  data ls_vbak_display type wd_this->element_vbak_display.


  lo_nd_vbak_display = wd_context->get_child_node( name = wd_this->wdctx_vbak_display ).


  lo_el_vbak_display = lo_nd_vbak_display->get_element( ).

 ls_vbak_display = ls_sales_details.
Pass the Value to the Stracture which ur created in the POP-UP window


* set all declared attributes

  lo_el_vbak_display->set_static_attributes(

     static_attributes = ls_vbak_display ).

Thanks & Regards





 
              
former_member189631
Active Contributor
0 Kudos

Magesh,

You can either map the your context node of table and to the component/Custom controler and get the selected row in in your popup window or you can only store the selected data in a node and map the same node to component/custom controller.

Ram