cancel
Showing results for 
Search instead for 
Did you mean: 

How to share context in between two components

Former Member
0 Kudos

Hi,

I have two webdynpro components in same applications, how do I share the the data in between 2 components which are in same application.

Regards

Praveen

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi Keerthi,

Assume you have following structure:

interfaceController1>componentController1>view1

interfaceController2>componentController2>view2

1. Define a context in interfaceController1

Map it to componentController1

Map this in turn to view1

2. in your component2 add controller1 as your used controller

3. Open data modeller for component2

4. Now you can bind the context available in the interface controller of component1 to the view/controller of your component2

Regards,

Murtuza

Former Member
0 Kudos

Hi Murtuza..

I have one question related to this topic. I am able to share the context from a View in one Component to another view in another Component. Now how do I navigate between Views in differnt component. Say, I have a form entry in View 1 and want to pass this values and show a confirmation view in another Component.

Rgrds,

Gandolf.

Former Member
0 Kudos

Hi Gandolf,

If you want to navigate from view1 in comp1 to view2 in comp2 then in your view1 embedd an existing view and there select the interface view of the view2.

While doing this you will find that it will have an inbound plug by default. now you just create an outbound plug from your view1 and link it to the inbound plug of the embedded view.

fire this plug on the action of button.

Regards,

Murtuza

Former Member
0 Kudos

Thanks Murtuza. It worked.

Former Member
0 Kudos

Hi Gandolf,

It's nice to hear that it worked for you. But if you can then please raise your issue in your own thread for the next time.

Regards,

Murtuza

Former Member
0 Kudos
Former Member
0 Kudos

Hi

Please check the link below

/people/maksim.rashchynski/blog/2006/08/07/intercomponent-parameters-exchange

Regards

Abhijith YS

Former Member
0 Kudos

Hi Keerthi

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/webcontent/uuid/28113de9-0601-0010-71a3-c8780... [original link is broken] [original link is broken]

Regards

Chaitanya.A