Skip to Content
avatar image
Former Member

EPCM.subscribe doesn't work

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?

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    avatar image
    Former Member
    Sep 02, 2008 at 10:19 AM

    Hi ,

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


    Add comment
    10|10000 characters needed characters exceeded

    • Former Member


      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);