on 09-13-2007 3:22 PM
Hi All,
I know there are a lot of threads dealing with passing paramters from EP to WebDynpro using EPCM but actually I didn´t find a solution for my problem.
I have in the dynamic navigation area of the SAP Portal an iView based on a JSP dynpage. In the corresponding JSP I fire an EPCM-event:
EPCM.raiseEvent("urn:test.de:wochenb" , "passDataToWebDynpro" , evtData);
In the content area there is a WebDynpro iView. In this WebDynpro-application I subscribe to the event in the wdDoInit-method of a view:
WDPortalEventing.subscribe("urn:test.de:wochenb" , "passDataToWebDynpro" ,wdThis.wdGetDataFromJSPDynpageAction());
and I have an event-handler:
public void onActionDataFromJSPDynpage(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent, java.lang.String dataObject )
{
//@@begin onActionDataFromJSPDynpage(ServerEvent)
IWDMessageManager manager = wdComponentAPI.getMessageManager();
manager.reportSuccess("EPCM event testing " + dataObject);
//@@end
}
My problem is now that the event is fired correctly by the JSP Dynpage but the event-handler of the WebDynpro is never executed.
As info: the domain of the J2EE-Server the webdynpro-application is deployed to is identical to the J2EE-Server the portal runs on.
Can anybody help ?
Thanks !
Bernd
Hi All,
I found the solution by myself.
For information: Click in the dynamic navigation fires the event und forces the content afterwards to refresh. During the refresh the WebDynpro subscribes to the event in the wdDoInit-Method. This is to late because the event is fired before the refresh.
My solution is to use a setTimeout before the event-triggering in the dynamic navigation iView.
Regards,
Bernd
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
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.