cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with Portal Eventing

Former Member
0 Kudos

Hi,

I am implemting the Simple Portal Eventing example from the WebDynpro tutorial and I am having the following problem. After debuging the application, I found that the value passed to the "reciever" application in null, altough when firing the event, the "value" parameter in NOT null.

All firing and catching of the events works just fine, the only problem is with the value passing in the event.

I will appriciate your help.

The problem is in this method (the dataOvject is null):

public void onActionReactPortalEvent(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent, java.lang.String dataOvject )

{

//@@begin onActionReactPortalEvent(ServerEvent)

wdContext.currentContextElement().setValue(dataOvject);

//@@end

}

Thanks,

Aviad

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

The argument should be dataObject..not dataOvject!

Change it ..then u will be able to get the value!

Regards

Bharathwaj

Former Member
0 Kudos

OK, you are totally correct. now it is working.

But... why is this like this? is dataObject a reserved word? isn't it just a variable name? why can't it work with other parameter name?

Thanks a lot,

Aviad

Former Member
0 Kudos

Hi,

Its just a variable name which is already defined.

when value is passed between iviews it gets stored in this variable..So if u misspell it.. it wont get the value from the correct variable...

Regards

Bharathwaj

Answers (0)