Skip to Content
0
Former Member
Apr 14, 2004 at 11:44 PM

EP6 Client-side Eventing basic question

27 Views

hello,

i have a really basic question on client framework, eventing in particular. i am on ep6 with sp1. i've read quite a bit of documentations on the topic but didn't find a clear statement for the following.

is client-side eventing meant only for iviews on the SAME portal page?

for example, i have two iviews: A raises an event that is subscribed to by B. if i place both iview A and B on the same portal page, the event handler defined in B appears to be invoked. BUT, if i place iview B on a different portal page, when A raises the event, i don't see the event handler in B being called at all. (i didn't to the page where B is on.)

is this the expected behavior? or perhaps my situation is special since it involves the logoff event (see below). what's the alternative, if any, for cross-page communication between iviews?

PS....

i am asking the question under the following context. i have successfully built java iviews to integrate with a web-based application (external to portal and sap j2ee engine). this is done through the application integrator service but with my own layer etc. the last task is to implement session termination for my web app whenever the portal user logs off.

from viewing source of any portal page, i see that the 'Logoff' link raises a client-side event:

EPCM.raiseEvent("urn:com.sapportals.portal:user", "logoff", "")

so i thought that i would subscribe to this event in my java iview. my event handler would invoke the logoff url for my web app. it works fine when i click the portal logoff link while displaying my iview. but if i click the logoff link from any other portal page (that doesn't show my iview), the event handler is NOT invoked.

thanks for any thoughts.

wentao