cancel
Showing results for 
Search instead for 
Did you mean: 

Communicate with two DCs thanks to Events

Joseph_BERTHE
Active Contributor
0 Kudos

Hi everybody,

So My question is about the events between two Development Components. I can't communicate to both DC !

I followed each steps of the tutorial <i>Using Server-Side Eventing in Web Dynpro Components</i> but something is missing because it doesn't work.

This technique work well inside my component (I can fire plenty of events without problems).

After debugging, I saw my program going into the interface and then fire the event. But nothing catch it.

Do you have any idea ?

Thanks.

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member186016
Active Contributor
0 Kudos

You said: <b>I saw my program going into the interface and then fire the event. But nothing catch it</b>

Have you created a event handler for the event in the interface controller ?

Regards,

Ashwani Kr Sharma

Joseph_BERTHE
Active Contributor
0 Kudos

Hi,

Thanks for replying.

So I have an event handler into my custome controler from my DC2.

Regards,

Former Member
0 Kudos

Hi,

Then subscribe that event handler to the event in the interface controller.

Joseph_BERTHE
Active Contributor
0 Kudos

Hi,

If i well understand you, You said that in my DC1 interface I launch the Event and in my DC 2 interface I catch it ? isn't it ?

Regards

Former Member
0 Kudos

Hello berthe,

Have you solved your problem?

Other options:

1. Create a Main component that use DC1 and DC2 as used components.

2. Use portal eventing if DC1 and DC2 are in different iViews.

Look How to use portal eventing withing a WD application in https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/60d7d690-0201-0010-e581-9c4fc69c...

Good Luck!

Joseph_BERTHE
Active Contributor
0 Kudos

Hi,

I didn't solve my problem. There is something weird in the behavior of my application. Because when I make the event process all worked well. And the next day it does not work anymore

I tried to do it again with two new DC and it work well. I'm getting crazy with WebDynpro !!!!

About your solution, my customer do not have the portal so I can't use the iViews Event.

Thanks anyway

Former Member
0 Kudos

Hi berthe,

Are you still using 2 individual DC or a MainDC using DC1 and DC2? perhaps with a MainDC you don't have that probblem.

As you said, something is going wrong in the behavior.

With a Main component you keep sure DC1 and DC2 are "alive" in execution time and both are in the same "execution context".

I don't know but just for try.... Has anyone another idea about what is happening?

Joseph_BERTHE
Active Contributor
0 Kudos

Hello,

So I fixed my problem using the PlugIn/Out Event. This work because to communicate with my root component, I have one main view which contain View Interfaces. So I pass through the plug out /in to communicate (to change views).

Thanks all for your help.

regards