1 Reply Latest reply on Oct 14, 2010 11:10 PM by BhaskerChari

    How to add an Array within an array?

    vineet osho Level 1

      Hi friends can any body guides me how to add array within array.

      Actually i am getting Array from server side and i have to append one more node(Array) in same array and send it back to them.

      here is the structure of my array that i am getting from server side.

       

      temp = Array (@4445e09)   
          [0] = mx.utils.ObjectProxy (@4314821)   
              Mylanguages = Array (@4445b69)   
                  [0] = Object (@449ac91)   
                      Mylanguage = "English"   
                      Mylanguage_code = "EN"   
                      Mylanguage_id = "1"   
                      selected = "Y"   
                  length = 1   
              currentpage = "1"   
              definition_id = "20"   
              delete_record = "Y"   
              edit_record = "Y"   
              insert_record = "Y"   
              numberofpages = "1"   
              numberofrecords = "1"   
              object = Object (@4432449)   
              productgroups = Array (@43cea51)   
              type = null   
              uid = "111111"   
          length = 1

       

       

      I have to add an array similar to like Mylanguages  containing object which contain some info like some ids. and my array becomes

       

      ttemp = Array (@4445e09)   
          [0] = mx.utils.ObjectProxy (@4314821)   
              Mylanguages = Array (@4445b69)   
                  [0] = Object (@449ac91)   
                      Mylanguage = "English"   
                      Mylanguage_code = "EN"   
                      Mylanguage_id = "1"   
                      selected = "Y"   
                  length = 1   
              currentpage = "1"   
              definition_id = "20"   
              delete_record = "Y"   
              edit_record = "Y"   
              insert_record = "Y"   
              numberofpages = "1"   
              numberofrecords = "1"   
              object = Object (@4432449)   
              productgroups = Array (@43cea51)
             AddedNOde= Array (@4445b69)   
                  [0] = Object (@449ac91)   
                      id= "10"   
                      tempId= "100"   
                      Mylanguage_id = "1"   
                  length = 1
                
              type = null   
              uid = "111111"   
          length = 1   

       

       

      please tell me how it possible.

       

       

      Thanks in Advance

      Regards

      Vineet osho