on 06-21-2011 6:25 PM
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
>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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
>Just to be sure, the parameter (in this case dirString) must be added to the event via rightclick with that same name 'dirString' ?
Yes. I failed to mention that part, but it is important otherwise the XBCML parsing of the return from the Island will ignore the event parameter. Here is a screen shot of that portion of the declaration in same sample:
http://www.flickr.com/photos/tjung/5857911758/in/photostream
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.