How to loop through DataGrid (ArrayCollection, DataProvider collection)

I need to loop through a collection ArrayCollection DataProvider or DataGrid (not sure which is best) so that I can insert information in a database through ColdFusion.

The data grid has three columns: ID, item and quantity.  I have a table that contains these same fields.  The DataGrid control is pre-filled with a list of items.  The user can then enter the quantity of items in the DataGrid.  I then want to store this information in my table.  In ColdFusion, I would accomplish this through CFLOOP, however, in Flex I want to loop through the data grid so that I can get all the items and the quantities that the user has updated.

I guess I have to do a loop in ActionScript, but I don't know how to do that.  Can anyone provide a suggestion and example code?

Thanks again!

Lee

If this post answers your question or assistance, please mark it as such.

Here ya go:



http://www.Adobe.com/2006/mxml '.
creationComplete = "init (); » >
 
    Import mx.collections.ArrayCollection;
     
public void init (): void {}
var ac:ArrayCollection = new ArrayCollection([)
{Field1: "my one - item a field", Field2: "my field two - point one"},
{Field1: "my field one - point two", Field2: "my field two - point two"},
{Field1: "my one - three field element", Field2: "my field two - point three"},
]);
for each {(var point: Object en ac)}
for each {(var: objet field àle point)}
trace (Field);
}
}
}
]]>
 

Tags: Flex

Similar Questions

  • How to loop through the CSV file

    Hello

    I want to loop through each column in a CSV file.
    And while the closure of each column, I want to loop every line starting with line 2 St.

    I wrote the code below, but it's a loop in the lines from rank 1.
    How can I start the loop from the 2nd row in the CSV file?
    (see code below)

    Can someone tell me how to proceed?

    THX




    <!-Download and read the file CSV - TXT->
    < cffile action = "read" variable = "C:\Documents and Settings\user\Desktop\EM-CSV\test.csv" file = "csvfile" >

    <!-browse the CSV - TXT file on line breaks and insert into the database->
    < table border = "1" >


    < cfloop index = list 'index' = "' #csvfile # ' delimiters =" #chr (10) ##chr (13) #">"

    <!-< cfoutput > #listgetAt('#index#',1, ',') # < / cfoutput > < br >->
    < b >
    < td > < cfoutput #index # > < / cfoutput > < table >
    < td > < cfoutput > #listgetAt('#index#',2, ',') # < / cfoutput > < table >
    < td > < cfoutput > #listgetAt('#index#',3, ',') # < / cfoutput > < table >
    < /tr >

    < / cfloop >
    < /table >

    Hi Like2Flex,

    The problem is that coldfusion does not see

    list = "a, b, c, d.

    as a list of 9 things you expect. He just sees 4 elements a, b, c and d because Coldfusion does not include two delimiters next to each other.

    A solution to the problem is to manually insert a space between two delimiters that are side by side. Here is an example of such a solution




    length of the list: #listlen (list) #

  • How to loop through the results of a select statement in a process flow?

    Hello

    I use Warehouse Builder 10 g R2.

    I'm trying to implement a loop in a process stream that runs through the results of a select statement.

    In pl/sql, it would be implemented as a for loop by using a slider, but I simply doesn't work how to do this using the loops in the process flow.

    Someone at - it ideas?

    Thank you
    Liffey

    Liffey,
    Look at this thread
    For or while loop a loop in the process flow

    Kind regards
    Oleg

  • How to loop through the layers of the children of a group with jsx?

    Need to change the name of a child layers in a group? How to get there?

    Kind regards

    Dorothy

    What is giving you problems?

    Perhaps this example can help:

    #target photoshop
    var theLayers = collectLayers(app.activeDocument.activeLayer, []);
    alert (theLayers.join("\n"));
    ////// function collect all layers //////
    function collectLayers (theParent, allLayers) {
      if (!allLayers) {var allLayers = new Array}
      else {};
      var theNumber = theParent.layers.length - 1;
      for (var m = theNumber; m >= 0;m--) {
      var theLayer = theParent.layers[m];
      theLayer.name = theParent.name + "_" + m;
    // apply the function to layersets;
      if (theLayer.typename == "ArtLayer") {
      allLayers.push(theLayer)
      }
      else {
      allLayers = (collectLayers(theLayer, allLayers))
    // this line includes the layer groups;
      allLayers.push(theLayer);
      }
      };
      return allLayers
      };
    
  • ItemRenderer fails values update with sorting applied to the ArrayCollection (dataProvider) collection

    Hi all

    IM updating the ArrayCollection collection which is the source of my list component

    (the email never changes)

    o:Object = {user:"username",email:"emailAdress",state:"number",imageURL="urlToImage"} //This comes from a function and arrives well.
    
    for (var j:int = 0; j < _arcUserList.length; j++) 
         {
              if(_arcUserList.getItemAt(j).email == o.email)
               {
                    //_arcUserList.setItemAt(o,j) //I've tried this but doesn't work too!!
    
                  _arcUserList.getItemAt(j).user = o.user;
                  _arcUserList.getItemAt(j).email = o.email;
                  _arcUserList.getItemAt(j).state = o.state;
                  _arcUserList.getItemAt(j).imageURL = o.imageURL;
                  _arcUserList.itemUpdated(_arcUserList.getItemAt(j));
    
    
              }
          }
    
    

    It works fine without the following sorting settings, but if I add to that that the lines in the init () it gives me:

    Error #1009: cannot access a property or method of a null object reference (in the first line of the function onChange of the converter in red below)

    var iSortByState:ISortField = new SortField("state",true);
    var iSortByName:ISortField = new SortField("user",false);
    var sort:Sort = new Sort();
    sort.fields = [iSortByState,iSortByName];
    _arcUserList.sort = sort;
    _arcUserList.refresh();
    
    

    Here I post my element converter

    <?xml version="1.0" encoding="utf-8"?>
    <s:ItemRenderer xmlns:fx="http://ns.adobe.com/mxml/2009" 
                                            xmlns:s="library://ns.adobe.com/flex/spark" 
                                            xmlns:mx="library://ns.adobe.com/flex/mx" 
                                            width="100%"
                                            autoDrawBackground="true" 
                                            creationComplete="fncInit(event)"
                                            dataChange="onChange(event)">
              <s:layout>
    
                        <s:HorizontalLayout gap="10" horizontalAlign="left"
                                                                          paddingTop="5" paddingBottom="5"
                                                                          paddingLeft="10" paddingRight="10"
                                                                          verticalAlign="middle"/>
              </s:layout>
    
              <s:Image id="_imgUser" height="32" width="32" />
              <s:VGroup width="70%">
                        <s:Label id="_lblUsername" fontSize="12" fontWeight="bold" />
                        <s:Label id="_lblState" color="#868686" fontSize="10" fontStyle="italic" /> 
              </s:VGroup>
              <s:HGroup width="100%"  horizontalAlign="right">
                        <s:Button width="40" label="@" click="onClickButton(event)" visible="false"/> 
              </s:HGroup>
    
    
    
              <fx:Script>
                        <![CDATA[
                                  import flash.filters.*;
    
                                  import mx.collections.ArrayList;
                                  import mx.controls.Alert;
                                  import mx.events.FlexEvent;
                                  import mx.events.StateChangeEvent; 
    
    
                                  [Bindable]private var arrStates:Array =["Disconnected","Busy","Available"];
    
                                  [Bindable]private var _nState:Number;
                                  [Bindable]private var _sImgURL:String;
                                  [Bindable]private var _sUser:String;
                                  [Bindable]private var _sEmail:String;
    
    
    
                                  protected function fncInit(event:FlexEvent):void
                                  {
                                            _nState = this.data.state;
                                            _sImgURL = this.data.imageURL;
                                            _sUser = this.data.user;
                                            _sEmail = this.data.email;
    
    
    
                                            this.setStyle("contentBackgroundColor","0xFF0000");
    
                                            _imgUser.smooth = true;
                                            fncLoadPicture(_sImgURL);
    
                                            _lblUsername.text = this.data.user;
                                            _lblState.text = arrStates[this.data.state];
    
                                  }
    
                                  private function fncLoadPicture(sURL:String):void{
                                            var context:LoaderContext = new LoaderContext();
                                            context.checkPolicyFile = true;
                                            context.applicationDomain = ApplicationDomain.currentDomain; 
                                            var fotoLoader:Loader = new Loader();
                                            fotoLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, onImageLoaded);
                                            fotoLoader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, onImageError);
                                            fotoLoader.load(new URLRequest(sURL), context);
                                  }
    
                                  private function onImageLoaded(event:Event):void {
                                            var bmp:Bitmap;
                                            bmp = ( event.target as LoaderInfo ).content as Bitmap; 
                                            _imgUser.source = bmp;
    
    
                                  }
    
                                  private function onImageError(event:Event):void {
                                            Alert.show("Error loading imabe.", "Alert");
                                  }
    
    
    
                                  protected function onClickButton(event:MouseEvent):void
                                  {
                                            trace(data.user+": "+data.state); 
                                  }
    
    
                                  protected function onChange(event:FlexEvent):void
                                  {
    
                                            _lblUsername.text = this.data.user; //if i comment this, it fails in the next and so on.
                                            _lblState.text = arrStates[this.data.state];
                                            fncLoadPicture(this.data.imageURL); 
    
                                            var glow:GlowFilter = new GlowFilter();
                                            glow.alpha=0.8;
                                            glow.blurX=2;
                                            glow.blurY=2;
                                            glow.strength=30;
                                            glow.inner=false; 
                                            glow.quality=BitmapFilterQuality.HIGH;
    
                                            switch (this.data.state.toString())
                                            {
                                                      //Disconnected - Invisible
                                                      case "0":
                                                                _lblUsername.setStyle("color",0x555555);
    
                                                                glow.color=0x6E6E6E;
    
                                                                var matrix:Array = new Array();
                                                                matrix=matrix.concat([0.4,0.4,0.4,0,0]);// red
                                                                matrix=matrix.concat([0.4,0.4,0.4,0,0]);// green
                                                                matrix=matrix.concat([0.4,0.4,0.4,0,0]);// blue
                                                                matrix=matrix.concat([0,0,0,0.5,0]);// alpha
                                                                var cmf:ColorMatrixFilter=new ColorMatrixFilter(matrix);
                                                                _imgUser.filters=[cmf,glow];
    
                                                      break;
    
                                                      //Busy
                                                      case "1":
                                                                glow.color=0xDF0101;
                                                                _imgUser.filters=[glow];
                                                                break;
    
                                                      //Available
                                                      case "2":
    
                                                                glow.color=0x01DF01;
                                                                _imgUser.filters=[glow];
                                                                break;
    
                                            }
    
    
                                  }
    
                        ]]>
              </fx:Script>
    
    
    
    </s:ItemRenderer>
    
    

    It works fine until I put the sort.

    Any suggestion?

    Your rendering engine must handle data being null without raising an error.

  • How to loop through the values of token

    I am trying to create a simple loop that runs through a bunch of values delimited by commas in a string and add them up. What is the best way to do it?

    Currently, my code looks like this

    < cfset basevalue = "0" >
    < cfset count = "1" >
    < cfset token = getToken (myString, count, ",") >
    < cfloop condition = "token QNE NULL" >
    < cfset token = getToken (myString, count, ",") >
    < cfset basevalue = basevalue + token >
    < cfset count = count + 1 >
    < / cfloop >

    This doesn't seem to work. Any ideas?

    I think that the correct syntax is index = "token". If you have some other delimiter then,




    Thank you

  • REGEXP_REPLACE how to loop through the occurrences of a text string variables

    Hello

    I use a 11.g Oracle procedure. I found an example of REGEXP_REPLACE with only two arguments (input and model) and created a procedure based on this example. The Replace function works, but not optimally. I try to use REGEXP_REPLACE to loop on a variable number of occurrences of a text string in a local variable of CLOB.  The string occurs after the text base64 (base64 comma) and before the text "/ > (double quote space oblique superior - only)."  I can do replace it work for a single occurrence, but I can't do it properly in a loop.  These embedded strings include images that were inserted in a rich Apex text field.  This is a rich text field is assigned to the CLOB p_html.

    Declare p_html clob;
      l_image_clob clob;
      l_image_count number;
    Begin
    p_html := '<p>Some header text base64,one start here and then this is the end one" /></p><p>Some header text base64,two start here and then this is the end two" /></p>';
    l_image_count := REGEXP_COUNT(p_html, 'base64', 1, 'i');
    If l_image_count > 0 Then
      For i In 1..l_image_count Loop
      l_image_clob := REGEXP_REPLACE(p_html, '(.*base64,)|(" />.*)');
      dbms_output.put_line(l_image_clob);
      -- code to process each occurrence individually.
      End Loop;
    End If;
    End;

    What I would like to see results of the data are:

    tenure here and that's the end

    two beginning here and that's the end of two

    The results I get are:

    two beginning here and that's the end of two

    two beginning here and that's the end of two

    Thanks a lot for watching this.

    Hello

    From Oracle 11.1, REGEXP_SUBSTR is better than REGEXP_REPLACE for this sort of thing.

    What produces the output you asked for:

    Declare

    CLOB p_html;

    CLOB l_image_clob;

    number of l_image_count;

    Begin

    p_html: = '

    ' Some header text base64, start here and then it's the end "/ >

    Some header text base64, two start here and then it's the end of two"/ >

    ';

    l_image_count: = REGEXP_COUNT (p_html, 'base64', 1, 'i');

    If l_image_count > 0 Then

    For i In 1... l_image_count loop

    l_image_clob: = REGEXP_SUBSTR (p_html )

    , "base64,(.*?)" / > "

    1

    , I - letter i (loop variable), not number 1

    , 'i'

    1

    );

    dbms_output.put_line (l_image_clob);

    -code to treat each case individually.

    End loop;

    End If;

    End;

    /

    The 4th argument to REGEXP_SUBSTR specifies where desired appearance (starting with 1).

    The 6th argument is a backreference. 1 means you want to return all that match the expression starting with the 1st '('. gauche)

  • Scripting inDesign: Loop through the layers

    I'm doing a script that will:

    To loop through all the layers in a document.

    Add the layers unlocked in table

    Loop in this table and glue them in place on each layer.

    I don't know how to loop through all the layers.

    Here is my script (I used? to represent where would the loop through all the part of layers):

    JavaScript document

    Set up a table to keep unlocked layers

    var layercollection = [];

    Browse layers and unlocked the layercollection table

    for (i = 0;? i ++) {}

    app.activeDocument.activeLayer = app.activeDocument.layers.itemByName (?);

    If (app.documents [0] .layers.) ([i]). Locked) == false;

    layercollection.push (Layers.itemByName ([i]))

    }

    Loop in table layercollection and paste in place

    for (i = 0; i < layercollection.length; i ++) {}

    app.activeDocument.activeLayer = app.activeDocument.layers.itemByName (tl [i]);

    app.pasteInPlace (); Dough

    }

    Can someone help me complete my script.

    Thank you!

    Did you test them all your solutions in a real world scenario?

    Theoretically, it should work this way (if one ignores that a layer is invisible, too), but even without the problem of invisible layers app.pasteInPlace () prefer to paste into the original layer, if the option "Paste remembers Layers" is checked.

    So I recommend you do the following:

    var oldPasteRem = app.clipboardPreferences.pasteRemembersLayers;
    //uncheck "Paste Remembers Layers"
    app.clipboardPreferences.pasteRemembersLayers = false;
    
    for (i = 0; i < app.activeDocument.layers.length; i++) {
    
        //Maybe the user does not want objects pasted to invisible layers:
        if(app.activeDocument.layers[i].visible == true && app.activeDocument.layers[i].locked == false) {
            app.activeDocument.activeLayer = app.activeDocument.layers[i];
            app.pasteInPlace();
        };
    };
    //Restore the old condition:
    app.clipboardPreferences.pasteRemembersLayers = oldPasteRem;
    

    Uwe

  • Strange behavior on DataGrid with ArrayCollection as a DataProvider collection

    I have a Datagrid with an ArrayCollection as a DataProvider collection, the arrayCollection collection is partially generated by a remoteObject call, the dataprovider seems to work at least until I try to change the field...

    By the RemoteObject, I get only a collection ArrayCollection with the 'ip' field, but the data grid seeks ip, check and recordfields...

    If I add/edit this field new it works, but only under specific condition

    The DataGrid control:

     <s:DataGrid id="datagrid" left="10" right="10" top="136" 
           dataProvider="{listaIPCheck}" bottom="10" requestedRowCount="4">
              <s:columns>
                    <s:ArrayList>
                         <s:GridColumn dataField="ip" headerText="Asset"/>
                         <s:GridColumn dataField="check" headerText="Inventory"/>
                         <s:GridColumn dataField="save" headerText="Salvataggio"/>
                    </s:ArrayList>
               </s:columns>
     </s:DataGrid>
    

    The Script:

       [Bindable]private var listaIPCheck:ArrayCollection; 
    
        private function ro_resultHandler(event:Event=null):void
        {
          listaIPCheck = new ArrayCollection();
          listaIPCheck = ro.getListUpdate.lastResult;
          heap = 0; 
          // Read Below {POINT #1}
          init3(); 
        }
    
    
        private function init3():void
        {
         // Read Below {POINT #2}
         if (heap<listaIPCheck.length)
         {
            // omitted the initialization of the process p
            p.addEventListener(NativeProcessExitEvent.EXIT, onExit);
            try{ 
              p.start(startupInfo);
            }catch(e:Error){}
         }
        }
    
    
    
        private function onExit(e:NativeProcessExitEvent):void { 
            // Read below {POINT #3}
        }
    

    Here is my code, now, as you can see there are 3 lines where I wrote to read below...

    Suppose that to put this simple 'for' instead of the commented (once both) line

        for (var k:Number=0;k<listaIPCheck.length;k++)
        {
          listaIPCheck.getItemAt(k).check = "checkVal";
          listaIPCheck.getItemAt(k).save = "saveVal";
        }
    

    This code still works in 3 points, so at the end of the call, the ArrayCollection collection is always filled with new values, but the datagrid control refresh the items only in the POINT #1 and #2 of POINT

    Why not the Point #3?

    When you get a large number of items in your list, you will probably also find it resets the selectedIndex property and jumps on the first line of data.  It is not automatically updated because the ArrayCollection collection look inside objects to see if they change.  When they change, you must indicate the ArrayCollection collection they changed, call itemUpdated.

  • To loop through a collection arrayCollection

    I need to:

    1 loop through a collection of table,

    2. Select a specific string in this collection

    3 extract a url this string

    4. Insert an additional string to the table with that extracted url

    The code I use to date is:

    " < = xmlns:mx mx:Application ' http://www.Adobe.com/2006/MXML "layout ="absolute"minWidth ="1024"minHeight ="768"> "
    < mx:Script >
    <! [CDATA]
    Import mx.collections.ArrayCollection;
    Import mx.rpc.events.ResultEvent;

    [Bindable]
    private var resultArrayCollection:ArrayCollection;

    private void doSearch (e:MouseEvent): void
    {
    twitterSearch.url = " " http://search.Twitter.com/search.atom?q=LDN ";
    twitterSearch.send ();
    }

    private function onResult (e:ResultEvent): void
    {
    resultArrayCollection = e.result.feed.entry as ArrayCollection collection;
    }

    []] >
    < / mx:Script >

    < mx:HTTPService id = "twitterSearch.
    result = "OnResult (Event)" / > "

    .....


    the HTTP service pulls in data from Twitter for example search http://search.Twitter.com/search.atom?q=LDN .

    Any help would be received with gratitude.

    Please remove the quotes-"[count].

    for(var count:int = 0; count < resultArrayCollection.length; count++) {
         trace(resultArrayCollection[count].title);
    }
    
  • Loop through all the items in a collection

    I need to loop through all the elements of a collection in a VB.NET program that uses the InDesign API. For example, I want to loop through all the pasta spread masters in a document. Here is my sample code:

    Dim I As Integer = 0

    Var MyApp as InDesign.Application = Nothing

    Var MyDoc as InDesign.Document = Nothing

    Var MyPage as InDesign.Page = Nothing

    MyApp = CType (Activator.CreateInstance (Type.GetTypeFromProgID ("InDesign.Application"), True), InDesign.Application)

    MyDoc = CType (MyApp.Documents.Add (False), InDesign.Document)

    With MyDoc

    With. DocumentPreferences

    . PageHeight = "8.5I".

    . PageWidth = "5.5i."

    Ends with

    With. ViewPreferences

    . HorizontalMeasurementUnits = InDesign.idMeasurementUnits.idPoints

    . VerticalMeasurementUnits = InDesign.idMeasurementUnits.idPoints

    Ends with

    If. MasterSpreads.Count > 0 Then

    For I = 0 To. MasterSpreads.Count - 1

    Dim ThisMasterSpread As InDesign.MasterSpread = CType (.) MasterSpreads.Item (I), InDesign.MasterSpread)

    Next I

    End If

    Ends with

    When it runs, I get an error on the last Dim statement which defines ThisMasterSpread. It highlights. MasterSpreads.Item (I) and gives the following error:

    COMException was unhandled: the Member required to the collection does not exist.

    How I managed to loop over all the pasta spread masters?

    Thank you!

    A lot of trial and error, I discovered the answer to my own question: the Collections are 1-based, not 0-based. My statement

    For I = 0 To. MasterSpreads.Count - 1

    should be

    For I = 1 To. MasterSpreads.Count

  • JDev 10.1.3.4: How to properly loop through lines of a VO?

    Hello

    He is a newbie question. Using JDeveloper 10.1.3.4 trying to loop through the rows of a display object. I'm sure that the VO returns the following lines in this order:
    200809
    200902
    200906
    If I use this code (where termsOpen is the instance of VO):
    while (termsOpen.hasNext()) {
       System.out.println(termsOpen.getCurrentRow().getAttribute("Term"));
    }
    It turns out to be an endless loop and I get "200809" displayed on the console ever. The API said that hasNext() 'does not move the current line. A book indicates that the pointer is initially at line 0. I wonder why it prints the first row. If the code is changed to:
    while (termsOpen.hasNext()) {
       Row currRow = termsOpen.next();
       System.out.println(currRow.getAttribute("Term")); 
    }
    But now I get only the last two lines displayed on the console and do not get to see the first line:
    200902
    200906
    What's wrong?

    Thanks for the help!

    Newman

    You can also use VO.getEstimatedRowCount () to get the number of rows, and browse all lines:

            long size = termsOpen.getEstimatedRowCount();
            for (int i=0; i
    
  • Loop of Datagrid and update database

    Hello

    What I would do:

    I have a datagird, users can change the data. When a key is pressed, the entire data grid is saved. I have a service that I can use to update each row of data to a database table, but how do I loop through each line? Can a code sample suggestion someone?

    Thanks again!

    Brian

    OK, found the answer in the following link, for those stuck on the same thing. This can be closed.

    http://kosiara87.blogspot.co.UK/2011/02/working-with-DataGrid-in-Flex-Flash.html

  • loop through XML

    I have the below XML and i want to loop through this XML and put the value in an array
    
    <Subproductdetails>
      <Subproduct id="1" name="AA" /> 
      <Subproduct id="2" name="BB" /> 
    </Subproductdetails>
    say, I declare a number table num_arr, I want the num_arr to be filled with id: 1 and 2.
    is someone can please show me how this is done in pl/sql

    Thank you.

    Hello

    If you have 10.2 or higher, try this:

    DECLARE
    
     TYPE num_arr_type IS TABLE OF NUMBER;
     num_arr num_arr_type;
    
     v_xml xmltype := xmltype('
      
      
    
    ');
    
    BEGIN
    
     SELECT id
     BULK COLLECT INTO num_arr
     FROM XMLTable(
      '/Subproductdetails/Subproduct'
      passing v_xml
      columns id number path '@id'
     );
    
    END;
    /
    

    For versions prior to 10.2 (and with the support of xmltype), use the following SELECT statement instead:

    SELECT extractvalue(column_value, 'Subproduct/@id')
    BULK COLLECT INTO num_arr
    FROM Table(
      XMLSequence(
        Extract(v_xml, '/Subproductdetails/Subproduct')
      )
    );
    
  • How to fill a datagrid with a web service result which is an array?

    I know how to fill a DataGrid to a CF of the web service that returns a query result. But what happens if I want to my CF component to run a query, then massage the data and back-is not a query - but a picture from the web service.

    Seems my two dimension table because ColdFusion has no column name, I need to create on the CF side name-value pairs or the side Flex. BTW, I prefer to use mx:webservice and not remoteObject.

    Any ideas on the best way to fill a datagrid from an array?

    Thank you.

    (Sorry for the previous double post).

    A colleague found the answer for me. I hope this saves someone else from 5 days of anquish!

    When a ColdFusion component returns an array of structures (not the result of a query), redesign the table as an arrayCollection collection throws an error.

    IT DOES NOT WORK:
    acSpeeds = new ArrayCollection (wsSpeeds.oneNode.lastResult);

    THIS WORKS!
    acSpeeds = wsSpeeds.oneNode.lastResult;

    It seems that a table generated by ColdFusion structures is already a collection arrayCollection 'official '!

    Hope this helps someone.

Maybe you are looking for