How To communicate between 2 DCs
HI,
I have two DCs,I want to pass the values(say-Name) from one view of DC1 to another view of DC2.
Basically my requirement is to pass soem value of DC1 to DC2.
Regards
-sandip
Former Member replied
Hi Sandip Sahoo,
To make a dc available in another one
1) You have to have a public part
2) You need to expose the methods and context (if needed) using interface controller.
3) Expose views using interface views.
Following article explains this in detail
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/800b7206-9c6d-2910-f78e-ce4034716c56
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f07c3625-c971-2910-3a9c-ce131487f82c
https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_all&query=webDynproComponentization&adv=false&sortby=cm_rnd_rankvalue
Follow these steps:
1. DC Metadata
2. Public Parts> New Public Part><name> and select provides and API for developing and compiling other DCs> select entity type as webdypro components and select the entity from the below list also check the checkbox stating add the entity to public part as source>Finish
3. Build your DC
4. Move to another DC
5. DC MetaData>DC Definition>Used DCs and select Add Used DCs--> and select the public part created above
6. Now open your window in the same DC and select embedd view and select embedd the interface view of a component instance>Next>Now expand the hierarchy and select the interface view of the above DC.
7. You will get a default inbound plug with this DC. Just provide a navigation link from some view of this DC to the interface view.
points if useful
Regards
Suresh