Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Event Parameters in WDA from Flash

Hi experts

I've alredy created a WDA with Flash inside in wich i send data from WDA and Flash make graphics.

Now i need to interact from Flash to WDA sending an event with values.

I found how to send event from Flash (fireEvent) and how to detect that event in WDA (adding and event) and get the values in WDA ; but that values are transfered just like the other context nodes, just with 'readOnly' property empty and in Flash these values are just public variables (not parameters in fireEvent).

I see we can add parameters in WDA Event , does somebody knows where can i search about how to manage parameters in WDA Event received from Flash (and how to send these parameters from Flash in the 'fireEvent') ?

Any help will be usefull.

Best Regards

Frank

replied

>does somebody knows where can i search about how to manage parameters in WDA Event received from Flash (and how to send these parameters from Flash in the 'fireEvent') ?

You can add the parameters into the fireEvent method. In this sample I have the Event name newDirections. I am adding the event parameter named dirString and the value is the variable dirS. You pass event parameters in this name/value pair format.

FlashIsland.fireEvent(this,"newDirections",{dirString:dirS});

From the ABAP side I can retrieve the event parameter from within the Event Handler method of the controller as follows:

data dir_results type string.
  dir_results =  wdevent->get_string( 'dirString' ).
  check dir_results is not initial.

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question