on 06-03-2007 11:39 PM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Brandon,
We used the guide listed below to figure out EPCM concepts:
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.