Quantcast
Channel: SCN: Message List - SAP CRM: Webclient UI - Framework
Viewing all articles
Browse latest Browse all 7775

Re: Pass data between different components, best practice

$
0
0

passing data between two different components depends on the usage of component

1.if you are navigating between two different components create navigation link with source view and target view with their corresponding plugs(outbound plug for source view and inbound plug for target view)

2.if you are using component as a popup

a)declare the context node in the interface controller and that context node should be there in both the component controllers of both components

and than you can bind the context node of your view  with the component controller context node to get data from component controller context node to your view context node

b)call popup open method with inbound plug of the interface view(window where the the view is residing)

with iv_data_collection in the window get the instance of the view and and call inbound plug of the view

in the inbound plug of the view we can set the collection to the context node collection wrapper

if you want any data from the popup to the source view.call the context node of popup

in the event of set_on_close_event method

lr_context_node = popup->get_context_node( iv_cnode = 'contextnodename' )


Viewing all articles
Browse latest Browse all 7775

Trending Articles



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