fill combobox via rpc and arraycollection collection

Hello

I have this XML coming via httpservice.

< types >
< type >
< TypeId > 1 < / TypeId >
< TypeUitspraak > Vonnis < / TypeUitspraak >
< / type >
< type >
< > 2 TypeId < / TypeId >
Arrest of < TypeUitspraak > < / TypeUitspraak >
< / type >
< / types >

Here's (part of) the code

Import mx.collections.ArrayCollection;
Mx.rpc.events import. *;


[Bindable]
private var uitspraakTypes:ArrayCollection;

private void typesHandler(event:ResultEvent):void {}
uitspraakTypes = event.result.types.Type;
}


private function InitApp (): void
{
types. Send();
}


"" < mx:HTTPService id = 'types' url = ' http://www.emis.vito.be/SBO/haaltypes.asp ' result = "typesHandler (event)" / >

< mx:ComboBox id = "typeUitspraak" dataProvider = "{uitspraakTypes}" > < / mx:ComboBox >


in debugging mode in that I can see the arraycollection collection correctly filled
I want to bind TypeUitspraak node of the xml to a combobox.
I get [object Object] in my combobox.

Please tell me what I'm missing here.

Thank you

Karel

Hello
You ares is simply not enough the only important thing

ComboBox uses a property called labelfield to show your domain, you must pass a dataprovider and your arraycollection collection a labelfield, in your case TypeUitspraak of penny

Tags: Flex

Similar Questions

  • ComboBox and arraycollection collection

    Hi all
    I am totally new with Flex and need your help.
    I have an ArrayCollection stored getMD the field collection goes ColdFusion cfc
    ++++++++++++++++++++++++++++++
    < cfproperty output = "false" >
    < name cffunction = "getMD" access = "remote" returntype = out of the "query" = "false" >
    < cfset var qread read = "" / >
    < cfquery datasource = "lds_clin" name = "qread read" >
    Select md_name from lds.mdmas
    < / cfquery >
    < cfreturn qread read / >
    < / cffunction >
    < / cfproperty >
    +++++++++++++++++++++++++++++

    What I am doing wrong that my combobox have a value of database? My mxml is similar to this:
    ++++++++++++
    <? XML version = "1.0" encoding = "utf-8"? >
    "" < mx:Application xmlns:mx = ' http://www.adobe.com/2006/mxml ' layout = "absolute" creationComplete = "initApp ()" >
    < mx:Script >
    <! [CDATA]
    Import mx.rpc.events.ResultEvent;
    Import mx.collections.ArrayCollection;
    public function initApp (): void {}
    ro.getMD (); }
    private void handleMDResult(event:Object):void {}
    myMD = event.result as ArrayCollection collection; }
    [Bindable]
    public var myMD:ArrayCollection;
    []] >
    < / mx:Script >

    < mx:RemoteObject id = "ro" destination = "ColdFusion" source = "apps.ria.DR.cfcs.GetData" > "
    < name mx:method = "getMD" result = "handleMDResult (event)" / > "
    < / mx:RemoteObject >

    < mx:ComboBox id = "cboMD" dataProvider = "{myMD}" = XY "246" width = "231" = "10" > < / mx:ComboBox >
    < / mx:Application >

    Thank you!
    Slava

    This is a reason, you should always inspect your data in the result handler. It is not always clear exactly what your data looks like.
    Tracy

  • Variable HTTService and ArrayCollection collection

    First of all - thanks for these turorials - great they´re.
    But as a beginner is easy to do something wrong.
    If I always appreciate the code source, so we can accelerate the learning one curve don't fight
    with small details like many empty spaces on etc...

    I ve done the exercise with HTTService again and again.
    I have debugging and all this, disable all firewall but still cant able to load the xml file into the DataGrid.
    Files and directories are accurate as in your tutorials.
    But only a blank page, I posted

    Here´s that the debbuger says:
    ".. Cannot convert mx.utils::ObjectProxy@29d1ee1 in mx.collections.ArrayCollection. »

    Probably what could be wrong?


    Here´s code:

    Hello highlander_1,

    I managed to get your example working with a few changes. I datatyped employeeData as XMLListCollection and adds the resultFormat property in the HTTPService e4X. The collection and E4X XMLList will allow you easily fill the dataGrid control. To see in the code below, I used

    Quote:

    The dataField property is the tag in the XML file. The headerText property is what is called the column. You can add several of them. In the example, I have edited for you, I see that three (firstname, lastname, email).

    You receive the data type ObjectProxy in castant don't not the ArrayCollection collection. For example:

    Quote:
    myDataStuff = event.result.employee as ArrayCollection collection;

    In this application, I copied your XML file in my project in a folder of data, here is the file of the application:

    Quote:

    http://www.Adobe.com/2006/mxml"layout ="absolute ".
    creationComplete = "init ()" > "


    Import mx.collections.ArrayCollection;
    Import mx.collections.XMLListCollection;
    Import mx.rpc.events.ResultEvent;

    [Bindable]
    private var employeeData:XMLListCollection = new XMLListCollection();

    private function init (): void
    {
    employeeService.send ();
    }

    private void resultHandler(event:ResultEvent):void
    {
    We're going to wrap the source with the XMLList.
    var employeeResultData:XMLList = new XMLList();
    employeeResultData = event.result.employee;
    employeeData.source = employeeResultData;
    }

    ]]>



    result = "resultHandler (Event)" resultFormat = "e4x" / > "



    dataProvider = "{employeeData}.
    Width = "480" >






    Hope this helps you,

    Ryan

  • ArrayCollection collection do not fill after calling first Data Services

    I am filling a collection ArrayCollection using a call for data by the following code:

    [
    Bindable]
    
    public var srv:RemoteObject;
    
    var acCountries:ArrayCollection; 
    
    if
    
    
     (srv == null){srv = 
    new RemoteObject();srv.destination = 
    
    "trip"; }
    acCountries = srv.getAllCountries.lastResult;
    srv.getAllCountries();
    
    
    
    

    ArrayList is not populted during the first call.  The java backend data service method is called, but the ArrayCollection collection is not populated until the time of the second (or third) the code is executed.

    I tried to walk through the debugger, but it is unclear what I does not initialize correctly.

    Hello

    Try to use the below approach instead of the adopted approach.

    [

    Bindable]

    public var srv:RemoteObject;

    private function getAllCountries():void

    {

    var acCountries:ArrayCollection;

    if (srv is Nothing)

    {

    SRV =

    new RemoteObject;

    SRV.destination =

    'journey';

    }

    srv.addEventListener (ResultEvent.RESULT, countriesResultHandler);

    srv.addEventListener (FaultEvent.FAULT

    countriesfaultHandler);

    srv.getAllCountries ();

    }

    private function countriesResultHandler(result:ResultEvent)

    {

    Check here the result by debugging object and replace the threshold accordingly

    acCountries = result.countries;

    }

    private function countriesfaultHandler(fault:FaultEvent)

    {

    Alert.Show)

    "Error: ' + fault.message);

    }

    In the approach you used you bind the data to the ArrayCollection collection by making use of the lastResult object.

    But you use the below line and send the result at the same time...

    acCountries = srv.getAllCountries.lastResult;

    srv.getAllCountries ();

    Here you don't know when the acCountries arraycollection collection will be linked to the lastResult object. Given that it is an asynchronous operation for the first time that you control the acCountries arraycollection collection you have all the data. Her approach always better and good use of event handlers in response as the way I used so that you will know exactly when took place the answer/result and if no fault or so.

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

    Hope this will make things clear...

    Thank you

    Jean Claude Chari

  • Fill() return empty ArrayCollection collection

    Hello

    I'm new to SDS and do not know why the fill() method returns nothing, even if the assembler returns a list of 3 items. I know the list is back nothing because when I see the length of the ArrayConnection, it is 0.

    I'm Tournai on the debugging logs and see the 3 items returned. Do you have tips on how I can solve this problem?

    Is there somewhere in the configuration where I specify the Java class maps to ActionScript class B? I just deleted my corresponding ActionScript class and always the same newspapers. I suspect that the SDS does not know how to map the Java class in the ActionScript class so that it gives me an empty list and throws the results. Does this sound right? If there is some sort of automatic mapping, I was expecting to see an error in the log after I deleted the ActionScript class.

    Thank you
    Jamie

    [Flex] 18/05/2007 12:19:31.443 [DEBUG] [DataService.Transaction] committed trans
    action
    [Flex] 18/05/2007 12:19:31.443 [DEBUG] [Message.Data.fill] after calling a service:
    data service
    answer: Flex Message (flex.data.messages.SequencedMessage)
    sequenceId = 0
    sequenceSize = 3
    (no proxy sequence)
    clientId = null
    correlationId = null
    destination = company
    messageId = 7A2A0D8F-C32B-80BC-D593-4551B71320F1
    timestamp = 1179515971443
    timeToLive = 0
    body =
    [
    Company (companyId = 100, name = null, address = null, status = null, zip = null undue
    Try = null),
    Company (companyId = 101, name = null, address = null, status = null, zip = null undue
    Try = null),
    Company (companyId = 102, name = null, address = null, status = null, zip = null undue
    Try = null)
    ]

    I found the answer to my own question. It was just a race condition. You can not read the size of the ArrayCollection collection immediately. The list takes some time to complete.

  • Access table in the arraycollection collection and add the item at the end of the table

    for
    
    
    "login_user":"XXX"},i);
    
    //mess2=sess_MessArr[i2];
    //mess1=dispArray[i2].fwchat_message
    
    //searchArray(mess2);}
    
    
    
    
    
    (var i:int = 0; i< dispArray.length; ++i){
    
    dispArray[i]. 
    dispArray.addItemAt({
    


    I have this code to try to access the values in the table in the arraycollection collection, but that's not it actually creates a value at the end of the arraycollection collection. can someone tell me what im doing wrong I basically want retransmits the individual tables in the arraycollection collection and add Login_user

    So, I guess your ArrayCollection collection holds an array of objects, as follows:

    public var myAC:ArrayCollection = new ArrayCollection([{first:"bob",last:"smith"},{first:"jim",last:"jones"},{first:"mary",last:"allen"}]);
    

    And you try to add a new property of login_user to each of them, right?

    for each (var obj:Object in myAC) {
         obj.login_user = obj.first + "83";
    }
    

    Each person would be firstly, properties last and login_user.  In my example above, all the login_user would set their name + number 83, so adjust you accordingly for your application.

    It is the ease (for each rock for this situation).  However, if you want to paste the iterative approach, you have published, you can try this:

    for (var i:int = 0; i < myAC.length; i++) {
         myAC.getItemAt(i).login_user = myAC.getItemAt(i).first + "83";
    }
    

    I think that the for each syntax is clearer, but anyway works the way I think you want.

  • Display collection ArrayCollection in a list and the ArrayCollection with Drag and Drop collection reorgnize

    I have an ArrayCollection collection created like this

    qaAC = new ArrayCollection();

    for (var i: int = 0; i < 10; ++ i) {}
    var o: Object = {question: ' what is "+ i +"? ", answer:" it's "+ i"};
    qaAC.addItem (o);
    }

    The ArrayCollection collection is an array of object that has properties "question" and "answer to" custimized.

    I want to put 'issues' in the ArrayCollection collection in a list. 'qaAC.question' does not return an array of questions for me.

    I have to extract the ArrayCollection collection to form a new String table, and use the new array as the dataProvider of the list of questions.

    Is there a way better and clean?

    My goal is to use a list to reorgnize an ArrayCollection collection that contains complex objects (not simple string) with Drag & Drop. Is this possible?

    Any suggestions?

    I put two lists in my example to show how the ArrayCollection collection could be displayed in two different ways. You don't have to have two lists if you do not need them.

    When you change the order of the list made with drag and drop, you change the order of the collection ArrayCollection qaAC, so all the controls that display the qaAC will also be updated to reflect the new order. You can test this in the example I posted earlier. Change the order in the list of question and you will see the order change also in the list of responses. This is because they are both bound to the same collection of ArrayCollection. If you want to behave independently, you need two separate ArrayCollections.

    Chris

  • collection ArrayCollection collection arraycollection assigned values from the original setting?

    Hi... I am pretty stumped on this one. Here's the situation... on my main flex app I define an arraycollection collection:

    public var fiscalYrsArray:ArrayCollection;

    The collection is filled with the results of a query to a CFC

    protected function fiscalYrs_resultHandler(event:ResultEvent):void {}

    for (var x: int = 0; x < event.result.length; x ++) {}

    If (event.result [x]. DATA == passData.filterFiscalYrs) {}

    Event.Result [x]. Assigned = true;

    }

    }

    fiscalYrsArray = event.result as ArrayCollection collection;

    }

    I have a main application with drop-down menus window (I use a multi-case combobox). I use this window as a filter window, where users can choose what they want filtered.

    on this component, I use a temporary arraycollection collection (b/c I don't want to change the assignments of the arraycollection the temp collection is based off of) which will be a copy of the fiscalYrsArray of the parentApplication collection:

    " < = xmlns:fx s:TitleWindow ' http://ns.Adobe.com/MXML/2009 'close = "PopUpManager.removePopUp (this)'

    xmlns:s = "library://ns.adobe.com/flex/spark" title = "filter data" creationComplete = "initComp (); »

    xmlns:MX = "library://ns.adobe.com/flex/mx" width = "400" height = "300".

    xmlns:multiPickBox = "Components.multiPickBox. *" >

    < fx:Declarations >

    <! - Place non-visual elements (e.g., services, items of value) here - >

    < / fx:Declarations >

    < fx:Script >

    <! [CDATA]

    Import mx.collections.ArrayCollection;

    Import mx.controls.Alert;

    Import mx.managers.PopUpManager;

    private var tempfilterFiscalYrs:String

    [Bindable] private var fiscalYrDP:ArrayCollection = new ArrayCollection collection;

    private function initComp (): void {}

    fiscalYrDP = parentApplication.fiscalYrsArray;

    tempfilterFiscalYrs = parentApplication.passData.filterFiscalYrs;

    }

    protected function msc_addItemHandler(event:Event,filterVal:String,comboId:String):void

    {

    Alert.Show ("get here '");

    This [filterVal] = ";

    {for each (var point: Object in {this [comboId] .selectedItems)}

    This element of += [filterVal] ['DATA'] + ",";

    }

    filterChange = true;

    idText.text = str;

    }

    I am lie the collection arraycollection filterYrDP to a custom choice multi combobox:

    < multiPickBox:CheckCombo id = "fiscalYearF" width = "162" dataProvider = "{fiscalYrDP}".

    addItem = "msc_addItemHandler (event, 'tempfilterFiscalYrs', 'fiscalYearF')" "

    allIndex = '0' x = "77" y = "17" labelField = "DATA" / >

    However, I find that when an element is activated the assigned = true value is actually applied to the fiscalYrsArray of my parentApplication origin. I just want the assigned = true to apply to the fiscalYrDP collection arraycollection (one that is based on the fiscalYrsArray of parentApplication). How could it be written back and changing the properties of a fi main is just a temporary copy?

    By assigning the table using "=" you are just assigning the same table - in the same memory location.

    If you want to keep a separate table, you use the function ObjectUtil.copy

    import mx.utils.ObjectUtil;
    
    arrNewData  = new ArrayCollection();
    arrOldData  = ObjectUtil.copy(arrNewData) as ArrayCollection;
    
  • Fill ComboBox programmatically by a method

    I'm trying to populate a combobox in a method. However my drop-down list box is empty. Is there a way to update the dataProvider of the combobox?

    Here is my code,

    Thank you

    ---------------------------

    <? XML version = "1.0" encoding = "utf-8"? >
    < mx:Application
    ' xmlns:mx = ' http://www.Adobe.com/2006/MXML "
    styleName = "plain".
    Initialize = "init ()" >

    < mx:Script >
    <! [CDATA]

    Import mx.controls.Alert;
    Import mx.rpc.AsyncResponder;
    Import mx.collections.ArrayCollection;

    [Bindable]
    public var myArray:Array;

    private function init (): void
    {

    myArray.push ("one");
    myArray.push ("two");

    }
    []] >
    < / mx:Script >


    < mx:ComboBox id = "QueryComboBox" dataProvider = "{myArray}" / >

    < / mx:Application >

    You must use an ArrayCollection collection for the dataProvider:

    var myAC:ArrayCollection = new ArrayCollection (myArray);

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

    Greg Lafrance - Flex 2 and 3 certified ACE

    www.ChikaraDev.com

    Flex / development, training, AIR and Support Services

  • Refresh the ArrayCollection collection

    How to refresh an ArrayCollection collection? My table shows the correct data at the start to the top, but will not update when a value changes via a slider or a climber. I have bound value of a slider to a NumericStepper and will use the value of the stepper in the table.

    any help would be greatly appreciated.

    The following code Snip:

    [Bindable]
    public var fresh: ArrayCollection collection;

    private function init (): void
    {
    cool = new ArrayCollection([)

    {FixedValue: 'Implied default rate', result: 15.80, expenses: (stepper.value-stepper2.value)/stepper0.value*(100)}

    I think you need to listen the NumericStepper change event and fill the value in the table in this eventhandler.

  • Add the object to the ArrayCollection collection

    Hi all

    I have an ArrayCollection collection which will be filled by a call remotely from java code.

    The Collection is no longer bound to a ComboBox that is shownup in the Panel.

    I tried to add an object to the collection of ArrayCollection iterated to 0th Index, whereas I could see this label of objects as the default label in the drop-down list box.

    But when the drop-down list box is displayed, the first element of the returned list of JavaCode is shown as the default label.

    See all present items in the drop-down list box, the label of objects which is added at Index 0 is seen, but when rendering this is not used as the default when appears on the display.

    < mx:ArrayCollection id = "departments" / >

    private void departmentResultHandler(event:ResultEvent):void
    {
    departments = event.result as ArrayCollection collection;
    Department: Department of var = new Department();
    department.departmentID = 0;
    department.departmentName = "Department";
    departments.addItemAt(department,0);
    }

    < mx:ComboBox id = "add_departmentID" dataProvider = "{services}" labelField = "departmentName" textAlign = "left" selectedIndex = "0" / >

    As I can't download images screeshot here, these are the URL that displays the images and gives a clear picture of what explains

    http://picasaweb.Google.com/narra.Madan/screenshots/photo#5118474206291402818

    http://picasaweb.Google.com/narra.Madan/screenshots/photo#5118474206291402834

    Please suggest where I have gone wrong

    Kind regards
    Madan

    The problem is the timing. When you assign the event.result to departments, the result is bound to the drop-down list, and the first item is selected by default. When new items are added to the drop-down list, flex does not change the selected item to the new item. Yes, it's just saying to your drop-down list box to select the element 0 and it will show Department.

    departments.addItemAt(department,0);
    add_departmentID.SelectedIndex = 0;

    You can also look at the use of the prompt property of the combo box. The prompt when comboBox.selectedIndex = - 1. Unless you need article of the Jet to be selectable, you can quickly define = 'Department' and then do:

    private void departmentResultHandler(event:ResultEvent):void
    {
    departments = event.result as ArrayCollection collection;
    add_departmentID.SelectedIndex = - 1;
    }

    Vygo

  • Some servers are build via VCenter and these servers do they appear in the VRA. How can we solve this problem?

    Some servers are build via VCenter and these servers do they appear in the VRA. How can we solve this problem?

    Please perform data collection and create a fake blue print.

    Go to infrastructure Organizer select the cluster and in the next tab filling details such as blue print and other information, click Finish.

    You can manage these servers through vRA.

  • How to raise an event from the arrayCollection collection?

    I'm passing data from a model to a view in the following files. It works fine, but I want to send a message on the screen when an arrayCollection collection is filled. I know that I could create a custom event, but I do not understand why the eventhandler I created will not work. Please tell me what I'm doing wrong.

    Thank you.

    <? XML version = "1.0" encoding = "utf-8"? >
    " < = xmlns:mx mx:Application ' http://www.Adobe.com/2006/MXML "layout ="absolute"creationComplete =" init () "> "
    < mx:Script >
    <! [CDATA]
    Import mx.collections.ArrayCollection;
    Import mx.events.CollectionEvent;
    Import mx.rpc.events.ResultEvent;
    [Bindable] private var databaseDataArrayCollection:ArrayCollection = new ArrayCollection collection;
    [Bindable] private var: model = new modele();
    [Bindable] private var: controller = new Controller();
    private function init (): void {}
    model.databaseDataArrayCollection.addEventListener (CollectionEvent.COLLECTION_CHANGE, chan ge)
    model = Model.createInstance ();
    controller.getData ();
    }
    private void change(e:Event):void {}
    trace ("changed in sight")
    }
    []] >
    < / mx:Script >
    < mx:DataGrid dataProvider = "{model.databaseDataArrayCollection}" > "
    < mx:columns >
    < mx:DataGridColumn id = "first name" dataField = "first name" headerText = "FIRSTNAME" / >
    < mx:DataGridColumn id = "lastName" dataField = "lastName" headerText = "LAST NAME" / >
    < / mx:columns >
    < / mx:DataGrid >
    < / mx:Application >

    Model.As

    package {}
    Import mx.collections.ArrayCollection;
    [Bindable]
    public class {model
    public var databaseDataArrayCollection:ArrayCollection = new ArrayCollection();
    private static var: model = new model;
    private static var num:Number = 0;
    public void modele() {}
    }
    Public Shared function createInstance (): model {}
    NUM ++
    if(Model == null) {}
    model = new modele();
    }
    return the template;
    }
    }
    }

    Controller.As

    package {}
    import com.simon.cms.UrlString;

    import flash.events.Event;

    Import mx.collections.ArrayCollection;
    Import mx.events.CollectionEvent;
    Import mx.rpc.events.ResultEvent;
    Import mx.rpc.http.HTTPService;
    Import mx.utils.StringUtil;

    [Bindable]
    public class {controller
    private var: model = new modele();
    public var httpService:HTTPService = new HTTPService;
    private var login_string:UrlString = new UrlString();
    public void Controller() {}
    model = Model.createInstance ();
    }
    public void getData (): void {}
    var params: Object = new Object();
    httpService.url = login_string.login;
    httpService.method = "GET";
    httpService.addEventListener (ResultEvent.RESULT, extractData);
    httpService.send (params)
    }
    private void extractData(event:ResultEvent):void {}
    httpService.removeEventListener (ResultEvent.RESULT, extractData);
    model.databaseDataArrayCollection.addEventListener (CollectionEvent.COLLECTION_CHANGE, chan ge)
    model.databaseDataArrayCollection = event.result.student.task;
    }
    private void change(e:CollectionEvent):void {}
    trace ("Changed in the collection")
    }
    }
    }

    You use "=" this is a reversal/replacement.  There is no chip

    assignment that will update.

    You could do

    model.databaseDataArrayCollection.source =

    Event.Result.Student.Task.source;

    That should translate into a CollectionEventKind.RESET in original HQ as it

    now a new set of data.

  • Labelling of records in an array or arrayCollection collection

    Many of the Tour de Flex examples use a table in a way that is not familiar to me. For example: var array: Array = [{Profit: 2000}, {Profit: 2400}];

    I want to put my data in the table as follows: var array1:Array = [2000,2400];

    but I still want to be able to access the property of 'Profit' when I use an ArrayCollection collection as in the example below.

    So, I have 2 questions:

    First of all, what is the name given to filling a table like: var array: Array = [{Profit: 2000}, {Profit: 2400}];

    and

    Second, how to tag my data with "Profit" when I add it to an array or ArrayCollection collection?

    Thanks for your time.

    <? XML version = "1.0" encoding = "utf-8"? >
    " < = xmlns:mx mx:Application ' http://www.Adobe.com/2006/MXML "creationComplete ="init ()">
    < mx:Script >
    <! [CDATA]
    Import mx.collections.ArrayCollection;
    private function init (): void {}
    var array: Array = [{Profit: 2000}, {Profit: 2400}];
    var ac0:ArrayCollection = new ArrayCollection (array);
    areachart.dataProvider = ac0;
    //
    var array1:Array = [2000,2400];
    var ac1:ArrayCollection = new ArrayCollection (array1);
    areachart1. DataProvider = ac1;
    }
    []] >
    < / mx:Script >
    < mx:Panel >
    < mx:AreaChart id = "areachart" color = "0 x 323232" height = "100" >
    < mx:series >
    < mx:AreaSeries yField = "Profit" / >
    < / mx:series >
    < / mx:AreaChart >
    < / mx:Panel >
    < mx:Panel >
    < mx:AreaChart id = "areachart1" color = "0 x 323232" height = "100" >
    < mx:series >
    < mx:AreaSeries yField = "Profit" / >
    < / mx:series >
    < / mx:AreaChart >
    < / mx:Panel >
    < / mx:Application >

    Hi SiHoop,

    You need to defenitely label it when you're assiging the data for the table itself.

    var array: Array = [{Profit: 2000}, {Profit: 2400}];

    That the above is equivalent to creating an object and pushing data to a table.

    You can use the above statement as... goes

    var array: Array = new Array();

    var obj:Object = new Object();

    obj. Profit = 2000;

    Array.push (obj);

    obj:object = new Object();

    obj. Profit = 2400;

    Array.push (obj);

    In fact {Profit: 2000} represnts an object... including the benefit's label (property of the object) to the value.

    var array: Array = [{Profit: 2000}, {Profit: 2400}]; is the easiest way to initialize the array. You need to label it until then only you can access it with the label.

    Thank you

    Jean Claude

  • You will need access to an ArrayCollection collection within a collection ArrayCollection to dataField in DataGrid.

    I have a DataGrid and the DataProvider is an ArrayCollection collection; However, some of my dataFields need to access the data in an ArrayCollection collection in collection of the DataProvider ArrayCollection.

    How can I access the ArrayCollection 'embedded' collection to fill the dataFields?

    Thank you...

    You can use a labelFunction for column in the data grid and do whatever you need to do it in.

Maybe you are looking for