cancel
Showing results for 
Search instead for 
Did you mean: 

Raising a Portal Event

Former Member
0 Kudos

I am trying to raise a portal event via the signal out. It seems when raising an event, the Flash runtime actually puts all the parameters in an XML-like string and then passes them on to EPCM. The EPCM, however, is expecting this data as an object, not as a string. Has anyone been able to actually raise an event (specifically the navigate event) that can be handled by the standard portal framework?

What I am really trying to do is navigate from one iView to another within the same browser window. Has anyone done this? I know that there is HTML view but I don't want to use this because of I want the user to navigate away from the current application.

Thanks for your help

Accepted Solutions (0)

Answers (2)

Answers (2)

vijayakhanna_raman
Active Contributor
0 Kudos

HI,

U can EPCM inside script tags and raise or subscribe the events.

In one of the JSP (inside portal project), u can write

<SCRIPT language ="JavaScript">

EPCM.raiseEvent( "urn:com.sap:MyEvent", "EventName", "Hello" );

<SCRIPT>

In the iView to be subscribed, u can write

<script language ="JavaScript">

function onMyEvent ( eventObj ) {

alert( "Got message:" + eventObj.dataObject );

}

EPCM.subscribeEvent( "urn:com.sap:MyEvent", "MyEvent", onMyEvent );

<script>

This will raise event from first iView and the data will be available in the second iView.

Regards,

Vijai

harman_shahi
Contributor
0 Kudos

Hi Brandon,

We used the guide listed below to figure out EPCM concepts:

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/771fa290-0201-0010-3d93-865e66cc...

We created EPCM event to create interaction between 2 iViews located the same page. When a change was made on one iView, it would raise an event to refresh the second iView.

Hope this helps,

Regards,

Harman