cancel
Showing results for 
Search instead for 
Did you mean: 

portal eventing

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

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>