cancel
Showing results for 
Search instead for 
Did you mean: 

EPCM.subscribe doesn't work

Former Member
0 Kudos

Hi all,

I have the next scenario. I open iView2 in a new window from iView1 using:

top.EPCM.doNavigate("ROLES://...iView2", 1);

I want to send a data from iView2 to iView1, so I subscribe the iView1 to an event that raise iView2. The problem is that the event is not caught for iView1.

If iView2 subscribe to the event that himself raise, it works perfectly.

top.EPCM.subscribeEvent("urn", "MyEvent", window, "onMyEvent");
...
top.EPCM.raiseEvent("urn", "MyEvent", sParam);	

Using Client Data Bag is possible to send/receive datas although it's not a pretty way of doing it.

Any ideas about what can be wrong?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi ,

EPCM eventing does not work across work across windows. Its valid only between iviews which are within the same page .

-Bharathwaj

Former Member
0 Kudos

Hi,

I have solved the problem using a tricky. From the iView 2 doesn't works raising the event, but I have done it referencing iView 1 from iView2 using "top.opener".

top.opener.EPCM.raiseEvent("urn", "MyEvent", data);

Regards,

Answers (0)