on 04-12-2006 4:39 PM
Hi all,
I have a problem with eventing, when the listener Web Dynpro application receives the event, the parameter sent within this event is null although it has been set not null before sending. can you please help me.
Best regards,
Badr
Hello Badr,
I have solved this in Portal 7.0 SP11, whit the eventing template in Dev Studio but the main concern is that thoy have to put the code in an specific way,
<b>This is for the Sender iVew</b>
[code]WDPortalEventing.fire(
"urn:com.examples.eventing",
"Send_Message",
"Message to be send!!!!"
);[/code]
<b>This is for the Receiver iVew</b>
[code]public void onActionReactPortalEventing(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent, java.lang.String dataObject )
{
//@@begin onActionReactPortalEventing(ServerEvent)
//$$begin Enterprise Portal Eventing(1866966146)
wdContext.currentContextElement().setMessage(dataObject);
//$$end
//@@end
}[/code]
Look that you need to receive 2 parameters and one of them, the message, needs to be called <i><u>dataObject</u></i>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
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.