on 09-05-2008 10:51 AM
Hi all,
I subscribe an iView to an event and it catch the raise of the event.
The problem is that the method associated to the event is executed more than once time. It looks every time I subscribe the event, although it's the same event, it adds the event again and again although it's already added.
I have thought to unsubscribe the event when I catch the raise.
Is it possible to unsubscribe the event?
Regards,
Have you seen this page?
http://help.sap.com/saphelp_nw04s/helpdata/en/d3/3857422d095542e10000000a1550b0/frameset.htm
Thanks,
GLM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Thank you GLM but I'm not using WebDynpro.
I have download epcf.js and I have seen the event unsubscribeEvent.
var id_event = top.EPCM.subscribeEvent('urn', 'MyEvent', MyMethod);
...
top.EPCM.unsubscribeEvent('urn', 'MyEvent', id_event);
It works, but I have had to close and reopen the browser, because EPCM was cached.
Thank you all,
Regards,
User | Count |
---|---|
88 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.