Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8990

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

$
0
0

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


Viewing all articles
Browse latest Browse all 8990

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>