Flash island WDA Simulate DataSources Input for Development

Hello,
Does anybody know how I can simulate a DataSource that comes from the WDA to the Flash-Island.
I am trying to create a FlashIsland and I looked at the function set dataSource example from Thomas Jung's WDA-GoogleMap.
During development for the flex project I would like to use some example data the would be send by the WDA to my FlashIsland.
I would like to fill that data during the init() of my Flex project. The data will only be pushed to the FlashIsland so no 'two-way' binding is needed.
e.g.: I know that in my WDA I have defined a DataSource named dataSource, which contains three Properties (var1, var2, var3).
The DataSource is a table containing e.g. three entries.
Any help is appreciated.
Leon

Hello Leon,
>>Does anybody know how I can simulate a DataSource that comes from the WDA to the Flash-Island.
To simulate the data, the better approach would be to create an xml file with the simulated data and read that xml into an arraycollection and call the set method of the datasource.
As you have one datasource with 3 properties, let me explain with an example:
1. Create an xml file data.xml and enter the following in that file:
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<root>
  <item>
    <userID>12345</userID>
   <firstName>User</firstName>
   <lastName>xyz</lastName>
  </item>
  <item>
    <userID>12346</userID>
   <firstName>User2</firstName>
   <lastName>xyz</lastName>  </item>
</root>
2. You have to define a HTTPService to read the xml file. Put the following mxml code in your flex application file.
<mx:HTTPService id="service"
            url="data.xml"
            contentType="application/xml"
            resultFormat="xml"
            result="serv_result(event);"
            fault="serv_fault(event);" />
3.  add the following code in the script block of flex application file.
private var simulatedData:ArrayCollection = new ArrayCollection;
      private function serv_result(evt:ResultEvent):void {
                /* Convert XMLNode to XMLDocument. */
                var xmlStr:String = evt.result.toString();
                var xmlDoc:XMLDocument = new XMLDocument(xmlStr);
                var decoder:SimpleXMLDecoder = new SimpleXMLDecoder(true);
                var resultObj:Object = decoder.decodeXML(xmlDoc);
                var arr:ArrayCollection = new ArrayCollection;
                arr.addItem(resultObj.root.item);
                simulatedData = ArrayCollection(arr.getItemAt(0));
private function serv_fault(evt:FaultEvent):void {
                Alert.show("Not able to load data from xml" + evt.message); 
private function readXML():void{
service.send();
4. Call readXML() method inside the event handler of initialize event of the flex application. And define an event handler applicationCompleteHandler for applicationComplete event of flex application.
Inside applicationCompleteHandler, call the set method of datasource in the following way:
private function applicationCompleteHandler():void
                datasource=simulatedData; //datsource is the setter method here
the setter method datasource can be the same as the one you use to read data from WDA.
Please let me know if you need more info!
Regards,
Srilatha

Similar Messages

  • Flash Islands in WD4J - NW 7.01

    Hello,
    We are currently on NW 7.01 SP 05 (NW 7.0 Enhancement Package 1) for our Web AS JAva.
    My NWDS version is 7.01.05
    I am trying to integrate a Flex application into SAP Portal using Web Dynpro for Java.
    I am following the article http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/b006b4c2-82bf-2b10-d28a-b0c599e7fa0d
    As per the document, I have created my Flex application using Flex Builder 3.0 and generated the "swf" file and integrated it into the "mimes" folder
    of my Webdynpro for JAva Project.
    However, in my NWDS version I don't have the option of replacing the Root Container of my View with the Flex application.
    I have read that Flash Islands is available as of NW 7.11 CE (Composition Environment) for Java.
    Also, it looks like "Flash Islands" feature is available in NW 7.01 ABAP (correct me if I am wrong).
    My Questions are:
    1. Is flash islands available in NW 7.01 or 7.02 (Enhancement Pack 1 or 2) (Java) ?
    2. Is there any alternative for using Flash Islands in WD4J besides going for NW CE 7.11 ?
    Please throw some light into this area.
    Thank you for reading.
    - Raj

    Hello Guys,
    Thanks for your comments. I did not know that my forum post would become so interesting
    Anyways, I am one of the WD4J developers out there who would like to see more features in NW 7.0 version. The 7.1 CE version of Java involves more work (like Daniel said) and would still not solve all our purposes. It would not be an upgrade actually going to CE 7.1 but an addition of a new server in the current landscape for better integration of some cool features.
    Though we cannot compare the ABAP and Java worlds, it would have been nice to include some useful (most anticipated for) features in NW 7.0 version of Java. (that were included in NW 7.0 of ABAP)
    Back to the my initial questions, if integration of Flex applications into SAP Portal using Flash Islands (WD4J) is not possible  in the NW 7.01 Java version - What would be my options ?
    - Can I use any other SAP specific java methodologies (Abstract Portal Components, JSPDynpage, EJBs, etc) to achieve this ?
    - To use WD4A based Flash Islands - would it require BSP coding as well ?
    Please share some of your valuable experiences.
    Thank You,
    - Raj

  • If WDA will be able to call a Flash island, and Flash can call javascript

    In this thread here:
    How would/should you invoke a javascriptable applet from WDA or WDJ?
    Thomas said that an upcoming release of WDA will let WDA call Flash "islands".
    Since this link:
    http://www.adobe.com/devnet/flash/articles/external_interface.html
    says that Flash can invoke javascript,  won't it be possible for WDA to call an applet indirectly by calling Flash and letting Flash call the applet ?
    djh

    Anton -
    I asked Thomas Stout to describe exactly what he's doing with Flex and JMol, and I'm posting his response just to be sure that there is no way (other than the portal) of duplicating what he is doing using WDA.
    Here's his response:
    Backend (linux):
    - we have a "database" of crystal structures in flat-file directories (for example,
    weekly rsync's from the PDB)
    - we parse those with perl scripts into an XML table with tagged data that we
    feel is relevant
    Flex:
    - the Flex app is constructed to load that XML file and display the data in a
    table.  We exported that code from Flex into an HTML table, which provided
    the basic page with a Flash movie of the Flex app embedded (See the attached
    screenshot from a development version of our web page: it's the horizontal
    rectangle at the top of the page).
    webpage:
    - we then built of the Jmol functionality into the lower half of this web page.  The
    table entries at the top are sortable on any column and filterable via the text
    box.  Once a line in the table is selected, the "Load" button passes the
    accompanying structure to the Jmol applet and all of the Jmol "tools" become
    active in the lower half of the page.   There is no communication in the reverse
    direction (can't think of why you would want to!).
    - BTW, the web page does not use "frames" -- I'm personally opposed to them --
    but it is all constructed within a table.  The Flash movie is in a table cell that
    spans two columns, the Jmol app is down a row and in the left hand (wider) cell,
    while the selectable links on the right are all in the right-hand cell.  The page is
    an amusing gmisch of HTML, javascript and JmolScript all fighting it out
    together.....    :)

  • Flash Island "Children DataSources"

    Hi all, I've been looking over the documentation for binding the data sources and properties in the FlashIsland's context nodes with The flex object, all of them show a simple scenario of one data source and few properties, but never shows the case of Children DataSources. I've had to use this case but I came across the following issue.
    The issue simply is Iu2019ve been accessing the DataSources defined in my FlashViewu2019s Context using the Bindable variables on my FlashIsland at the flex side, and whenever I need to get the ChildDataSource of it, I would use the actual name of that ChildDataSource thatu2019s defined in the COMPONENTCONTROLLERu2019s Contextu2026 I figured that this is not a good practice for reusability!
    Just to make sure Iu2019m clear this is a small example
    for each(var item:Object in _myFlashIsland.Box)
                var boxData:ArrayCollection = item[[BOX_DATA]];
    Where myFlashIsland.Box is the Bindable DataSource variable, and u201CBOXDATAu201D is the name of the ChildDataSource of Box.
    Would there be a way I can get the name of u201CBOX_DATAu201D generically or use the u201Cnameu201D property in my FlashIsland view at the SAP side the same way I used it for Box, so whoever is using the component wonu2019t have to strict their context to have this naming?
    Thank you in advance, and have a wonderful day.

    You had stumped me on this one, but I went back to the developer in Palo Alto who wrote the Flex side of the FlashIslands implementation.  He was kind enough to pass along this explanation. I had never tired it before, but there is a method of the FlashIsland library called getDataSourceFieldName that can be used for this.  Here is his complete explanation:
    There are two ways to access the child data source.  The first is to just use the normal data source declaration, if you do that you will get the lead selected (or default selected) child data source.  Lets say your context looks like this:
    context root
    |
    +-A (context node)
      |
      +-a1 (context attr)
      +-a2 (context attr)
      +-B  (context node)
        |
        +-b1 (context attr)
        +-b2 (context attr)
    And lets say you create your Flash Island with a GACDataSource name="A" and a child GACDataSource name="B"
    In your Flex code you would declare:
    public var A:Object;
    public var B:Object;
    "A" would be set to the lead selected node for context node "A" and "B" would be set to the lead selected node for context node "B".
    If, however, you would like to iterate through the all of the child context nodes you can use the getDataSourceFieldName FlashIsland function to get the correct child's field name.  Given the previous example the following should work:
    public function set A(val:Object) : void {
        if(!(val is IList))
            return;
        var mainDS = val as IList;
        var childDSField:String = FlashIsland.getDataSourceFieldName(this, B);
        for(var i:int=0; i<mainDS.length; i++) {
            var mainDSRowObject = mainDS<i>;
            var thisRowsChildDS:Object = mainDSRow[childDSField];
            Alert.show('Child ' + i +
                    ': attr1: ' + thisRowsChildDS[BAttr1Field] +
                    ' attr2: ' + thisRowsChildDS[BAttr2Field]);
    public var B:Object;
    public var BAttr1Field:String;
    public var BAttr2Field:String;

  • Xcelsius adapter file for Flash Islands - where is it?

    Can't find this broker file needed to communicate Xcelsius with Flash Islands ifor WDA.  According to the book 'Next Generation ABAP Development' this file should be avaiable, does anyone have a link to it or know where I can find it?

    Hey Thomas,
    We are on 7.01:
    SAP_BS_FND  701  0005  SAPK-70105INSAPBSFND  SAP Business Suite Foundation
    Is there any other way (support pkg?) to get this adapter file?  Not sure if our system will be getting an upgrade soon.

  • Flash Islands for WebDynpro Java

    Hi,
    I am new to Flash Islands, is there any tutorial kind of thing for Flash Islands for WebDynpro java.
    i found good tutorial by Thomas Jung for Flash Islands for WebDynpro ABAP.
    Please provide me similar kind of  links for WebDynpro java.
    Thanks,
    Dhananjaya R E

    Hi All,
    Thanks for your replay, i am using " NW711 CE SP03 MIN " for the development, i followed the bellow link
    /people/anilkumar.vippagunta2/blog/2008/11/13/adobe-flash-islands-in-web-dynpro-for-java
    i did not get the option FlashIsland under (RootElement ->Replace with->) option. i saw in some posts that NW711 CE supports Flash Islands, do i need to add any plugins for that ?
    please help me regarding this.
    Thanks,
    Dhananjaya R E

  • We have developed a desktop application using Flash software and published the same for MAC environment. When we double click on the index.app file, the application is working perfectly in Mac 10.6.7 at our office. But if the same index.app file is double

    We have developed a desktop application using Flash software and published the same for MAC environment. When we double click on the index.app file, the application is working perfectly in Mac 10.6.7 at our office. But if the same index.app file is double clicked in Mac 10.6.7 at out clients location, its not opening. For your information the client is able to open this same application by double clicking on index.swf file. The main problem is that client is not able to open the application using index.app file at their office whereas we are able to do so at our office. Can anyone give some suggestions to sort this problem?

    The most common reason is different versions of Flash, or different versions of web browsers used.  Some users may elect to not have Flash installed at all because of the processor overhead of Flash.  If you are going to make an application for a client, check what operating system and browser versions they are using first.  Then determine if a stand alone application is required, or if they have the necessary plugins to run specific browser enhanced code.
    P.S. MAC is an acronym for Media Access Control.  Mac is the shorthand for Macintosh, the operating system and computers made by Apple Inc.

  • How to force sql developer to prompt for user input for every execution ?

    Hi Folks,
    Environment: Oracle 11g (on Windows 7)
    SQL Developer: *3.1.07*
    I am executing a PL/SQL code off Sql Developer. The code uses substitution variables to prompt user for input. However,I am only prompted for the user input for the very first run of the code. For the subsequent executions, the code simply picks up the user input from the very first run. This behavior persists for all subsequent runs of the code.
    I have executed the same piece of code from SQL*PLUS and the behavior seems normal (i.e. I am prompted for fresh input for every execution)
    How can flush out the old user input so I can be prompted for new user input for every run of the code in sql developer?
    Thanks in advance
    rogers42

    Hi Rogers42,
    1/try
    undefine
    undefine fred
    select '&&fred' from dual;
    [run this multiple times]
    [prompts gere]
    old:select '&&fred' from dual
    new:select 'a' from dual
    'A'
    a
    [prompts here]
    old:select '&&fred' from dual
    new:select 'b' from dual
    'B'
    b
    2/try
    exit (requires recent version of sql developer: tools->preferences->Database->worksheet->Re-initialize on script exit command)
    select '&&fred' from dual;
    exit
    run this multiple times
    [prompts here]
    old:select '&&fred' from dual
    new:select 'x' from dual
    'X'
    x
    Commit
    [prompts here]
    old:select '&&fred' from dual
    new:select 'y' from dual
    'Y'
    y
    Commit
    3/use &fred instead of &&fred
    For background see
    http://totierne.blogspot.co.uk/2010/04/substitution-and-bind-variables.html
    -Turloch
    SQLDeveloper team

  • What SAP component support Flash Island in Web Dynpro for ABAP?

    Hi  Experts,
    What SAP component support Flash Island in Web Dynpro for ABAP? I don't find flash island control to place it in the view.
    Thanks,
    Duy

    FlashIsland is a native UI element like table or image - not a reusable component like ALV.  What release level is your system?  FlashIsland is only available on NetWeaver 7.0 Enhancement Package 1 and higher.
    Also the FlashIsland UI element must be a root UI element. Therefore it has be created in its own view.  Right mouse click on the ROOTUIELMENT in the UI element hierarchy and choose Swap UI Element Definition.
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/47/b907cd77eb2d66e10000000a42189c/frameset.htm

  • Adobe Flash Islands for Web Dynpro ABAP Data Binding problem

    I have downloaded the NetWeaver 7.1 Trial (includes Adobe Flash Islands for Web Dynpro ABAP). I try to create a very simple FlashIslands component running within the Web Dynpro Application, everything looks good. However, all binding to the Flex component is not working. Does anyone know why?
    Since it's trial version, I login as BCUSER into NSP system. When I load up the build-in sample, such as Chart Demo, the binding to Flex seems working. I suspect if it has anything to do with package? I could only create my Web Dynpro under the $TMP package, as all the build-in sample are defined in SWDP_DEMO.
    Please help.
    Alan

    hi,
    Check out this link. It will give you an idea how to integrate Aobe island comp with web dynpro.
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/307b434f-ff32-2b10-e885-991247270480
    Thanx.

  • Necessary software for flash islands

    Hi,
    can you pls. tell me what is needed to work with flash islands (for Abap). Which of the packages should I download
    at http://www.sdn.sap.com/irj/scn/downloads ->  SAP NetWeaver Main Releases or  SAP NetWeaver Composition Environment .
    Can I do it with SAPNW7.01ABAP Trial too ?
    Friendly Regards
    A. Ziegler
    Edited by: AlexanderZiegler on Feb 3, 2010 1:03 PM

    Dear Thomas,
    thank you for repliying.
    Is this release level the highest trial Software at SDN Downloads?
    SAPNW7.01ABAP  Trial.
    Regards
    A. Ziegler
    Edited by: AlexanderZiegler on Feb 3, 2010 3:04 PM

  • I have flash builder 4 and want to start developing for android

    I have flash builder 4 and want to start developing for android. I don't want to buy flash cs5 or device central or buy a android phone.
    I just want to test an app for it.
    What are my options?
    should I wait?
    Are adobe going to milk me to for to get any productivity going here?

    When trying to install ADT im getting
    Cannot complete the install because one or more required items could not be found.
      Software being installed: Android Development Tools 0.9.7.v201005071157-36220 (com.android.ide.eclipse.adt.feature.group 0.9.7.v201005071157-36220)
      Missing requirement: Android Development Tools 0.9.7.v201005071157-36220 (com.android.ide.eclipse.adt.feature.group 0.9.7.v201005071157-36220) requires 'org.eclipse.jdt.junit.runtime 0.0.0' but it could not be found
    why must I install the JDT?

  • What app will send pics for developing at stores? Adobe flash 10 is required does apple have anything ? I can't use reg computer cause of arm problems love my ipad

    Need app to send photos on iPad to stores for development, memory books. Adobe flash 10 required , what can I do my arms can not use reg computer how to get pictures sent anyone know? I love my IPad arms are down , this has been a problem I haven't been able to solve yet, help? Have transferred photos to laptop but can't stay on it 3 min, need to work and send from IPad?

    The iPhoto for iOS forum is here
    https://discussions.apple.com/community/app_store/iphoto_for_ios
    Regards
    TD

  • Learning ActionScript for developing FLASH Games

    Hi ,
    I dont whether i can post this question here or there is any other Forum for ActionScript , if so sorry for that .
    Now to the question , I know some what ActionScript like Events , custom UI Components , and classes  as required for simple FLEX development .
    To what extent we need to learn ActionScript to develop Flash Games ??
    Can anybody suggest me as where to start with , what is the correct approach and is there any IDE avialable for that .
    Please share your ideas on this     

    hi,
    Depends on what sort of games you want to write, firstly you will definitely need to become familiar with actionscript, most gaming and 3d engines for flash games are done in pure actionscript. You can developer your games in flex even if you don't uses mxml basically the real power of games is in the code which means actionscript.
    http://pushbuttonengine.com/  a gaming engine for flex/ flash
    http://away3d.com/  3d engine for flex/flash
    http://www.flashrealtime.com/flash-game-library-engine-list/   a site that will have you reading lots of interesting stuff.
    David.

  • Adobe Flash Islands for Web Dynpro Java

    Hi,
    How to create Adobe flash island component.
    How to integrate Adobe flash Island Component into Web Dynpro Java ?
    Regards,
    Krishna Balaji T
    Edited by: krishna balaji on Nov 13, 2008 8:00 AM

    hi,
    Check out this link. It will give you an idea how to integrate Aobe island comp with web dynpro.
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/307b434f-ff32-2b10-e885-991247270480
    Thanx.

Maybe you are looking for

  • Download to Excel 2007 (.xlsx) Help

    Hi Everyone, I have an issue with the Download options - Download to Excel. We have a few on-demand bulk reports that basically allows users to fire a detailed obiee report through GoURL. Once the report is done, the Download Option - Download to Exc

  • No web cam since windows 8 l505-s5988

    I hope this is the best subforum for this (wasnt sure if this one or windows 8 subforum or another one). I recently bought a really good Satellite l505-s5988 & had to put Windows 8 on it. Everything has seemed to work great except apparently the buil

  • Choose from multiple versions of Matlab

    Currently working with several different versions of Matlab on my workstation, and have not been able to figure out how to select the version that is opened when I run a Matlab Script.  It always defaults to the same version.  Haven't seen an existin

  • Frozen startup screen with apple and spining cirlce. BRAND NEW FROM APPLE!

    i just bought a new imac today from chadstone apple store and i tried installing one of the grey discs but halfway through installation i stopped it coz i realised i already had it on the computer. then it gave me option to restart or shutdown, i cli

  • Adobe Premiere CS6 wont play my RWDVD

    I had imported my RW-DVD and I tried to press play and also tried using the spacebar but it wont play the video. I can see that the video is in the time line with the audio but I'm stuck. Note: This is my first day using the program so please use wor