cancel
Showing results for 
Search instead for 
Did you mean: 

How to send data from one view to a popup and then back again to another view ?

Neelabh
Explorer
0 Kudos

Hi guys

In a project i have to sent data from a view to a popup and then send that data again to another  view .

I can create a popup view but don't know how to send data to it from a view ...

Accepted Solutions (1)

Accepted Solutions (1)

ramakrishnappa
Active Contributor
0 Kudos

Hi Raj,

Your requirement can be achieved as below

  • Create a context node MY_DATA with attribute SHARED_DATA in component controller
  • In View V_ONE, set the value to attribute shared_data by using method SET_ATTRIBUTE of if_wd_context_element interface
  • In popup view, you can read this data by using GET_ATTRIBUTE method of if_wd_context_element to make use of it Otherwise, if you bind the attribute shared_data into popup view, data sent from view V_ONE will be available in popup window
  • To pass data back from popup window, set the data to shared_data / other attribute of my_data context node and read in view V_TWO

Other way,

You can create a global attribute GV_SHARED_DATA in component controller and whenever you need to set or read data you can access this as WD_COMP_CONTROLLER->GV_SHARED_DATA in all views of the component

Hope this helps you.

Regards,

Rama

Answers (0)