1 Reply Latest reply on Sep 13, 2011 10:02 AM by Flex harUI

    Combine two arrayCollections

    jfb00 Level 3

      Hi All,

      I have two arrayCollections holding two primary keys like:

      [Bindable] private var acSample01:ArrayCollection = new ArrayCollection([
                      {key01_id:100, key02_id:120, Fname: "Kranthi", Lname:"Kata"},
                      {key01_id:101, key02_id:121, Fname: "Vasanth", Lname:"Lola"}
                  ]);

       

      [Bindable] private var acSample02:ArrayCollection = new ArrayCollection([
                       {key01_id:100, key02_id:120, dob:"21/10/1972", Amount:10000, Rate:20},
                       {key01_id:101, key02_id:121, dob:"1/9/1971", Amount:3000, Rate:10}
                   ]);

       

      How can I combine this two in another array collection like:

      [Bindable] private var acSample:ArrayCollection = new ArrayCollection([
                       {key01_id:100, key02_id:120, Fname: "Kranthi", Lname:"Kata", dob:"21/10/1972", Amount:10000, Rate:20},
                       {key01_id:101, key02_id:121, Fname: "Vasanth", Lname:"Lola", dob:"1/9/1971", Amount:3000, Rate:10}
                   ]);

       

      Any links or samples?

      Thanks

       

      Johnny