Hi,
I am trying to pass a parameter to Web Dynpro using "FlashIsland.fireEvent()". The event is fired, but I cannot get the parameter.
I WD I created a GACEvent :
name = doSomething
onAction = doSomethingAction
In this Event I created a GACEventParameter
name = returnText
type = string
In Flex I implemented following function :
private function click():void
{
var returnText:String;
returnText = "Dit is een test";
FlashIsland.fireEvent(this,'doSomething',returnText);
}
This is the code of the action in WD :
public void onActionDoSomethingAction(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent)
{
//@@begin onActionDoSomethingAction(ServerEvent)
wdComponentAPI.getMessageManager().reportSuccess(wdEvent.getString("returnText"));
//@@end
}
The event is fired, but I get the message "invalid message: null". What am I doing wrong?
Regards,
Jeroen