Questions tagged [arraycollection]

The ArrayCollection class is a wrapper class that exposes an Array as a collection in Flex which can be accessed and manipulated. Use this tag for questions related to arraycollection.

The ArrayCollection class is a wrapper class that exposes an Array as a collection that can be accessed and manipulated using the methods and properties of the ICollectionView or IList interfaces. Operations on a ArrayCollection instance modify the data source; for example, if you use the removeItemAt() method on an ArrayCollection, you remove the item from the underlying Array.

Reference

340 questions
0
votes
2 answers

Symfony2 - Doctrine ArrayCollection methods coming back as undefined

This is odd. I have an entity that can contain an ArrayCollection of other, related entities. When I make a couple of helper methods to allow me to add/retrieve the value of a singular entity, I get a Symfony2 exception telling me the method is…
Major Productions
  • 5,914
  • 13
  • 70
  • 149
0
votes
1 answer

Flex Coercion Error Type #1034

I am building a Flex Mobile Application and I keep getting this error: TypeError: Error #1034: Type Coercion failed: cannot convert mx.collections::ArrayCollection@ba39581 to Array. It says that the error is occurring here (at the ArrayCollection…
RMK-Jacob
  • 209
  • 1
  • 4
  • 15
0
votes
2 answers

filling data grid with array collection of values objects from java

I would like to do statistics in flex. I have recuperated my array list from the java service when i clicked on a button and i recuperate the end and finish date of statistics when i test the return values of the list in java it gives the correct…
hana
  • 1
  • 4
0
votes
0 answers

Flex gotcha: Something to do w/assigning ArrayCollection elements with ObjectProxy using [] operator

I have some ActionScript code that assigns an ArrayCollection using: var oProxy:ObjectProxy = new ObjectProxy(myobject); arr[i] = oProxy; Stepping through this code, I find that arr[i] is not what oProxy is. I want to know why this failed…
Opux
  • 702
  • 1
  • 10
  • 30
0
votes
1 answer

How to get two xml files in a single array collection in flex?

I have two xml files, defect. xml and employee.xml. But the files havea common field but with different names in each file. I want both the files to be merged in to a single array collection. The structure of my defect.xml file is:
Angeline
  • 2,369
  • 22
  • 68
  • 107
0
votes
1 answer

How to Add an Icon to a List of Views in Adobe Flex Mobile Project

I would like to add an Icon to a list of views in my flex mobile project. I am not sure of how to approach this. Here is the line of code, and below it is an image of the view.
Ryan Watts
  • 611
  • 1
  • 9
  • 27
0
votes
1 answer

Error in getting values from XML file to array Collection in Flex

I am trying display values in a datagrid in my application. I have all the values as an xml file. I had only one set of record n the XML file, to fill only one row of the data grid. While trying to store the values from the XML file to an Array…
Angeline
  • 2,369
  • 22
  • 68
  • 107
0
votes
1 answer

ObjectUtil.copy won't copy any ArrayCollection

For a while now in my app I've used ObjectUtil.copy to copy array collections. Recently we've been making a lot of changes to the app and its started breaking on any of my copy commands. I originally thought it was due to custom classes in the…
ScottF
  • 565
  • 6
  • 21
0
votes
1 answer

Sorting Multidimensional Array in Actionscript

I have an array of arrays that I need to sort, but I'm having trouble getting it figured out. My main array (mainArr) looks like this: mainArr = ({code:"1", date:"1/2/2001", status:"Active"}, {code:"2", date:"6/2/2004",…
mkyong
  • 12,497
  • 12
  • 37
  • 56
0
votes
1 answer

flex : how to cast int to String in Object

private var xml:XML = 123456789012345678903333333333 public function xmlConversion(xml:XML):void { _xmlDoc = new XMLDocument(xml.toString()); _decoder = new…
0
votes
2 answers

Flex consuming huge memory for large data

When flex array collection is handled with large amount of data for example 2,00,000 new referenced objects the memory in flex client browser shoots up 20MB. This excess 20MB is independent of the variables defined in the object. An detailed example…
0
votes
1 answer

Flex Builder - "Data binding will not be able to detect changes when using square bracket operator"

I am building an app. The first page has a list generated from a local xml which when you select an room type on that list, it pushes the nodes under the selected item; title page, page image, and a new list of products in that room to another list…
0
votes
1 answer

doctrine2 arraycollection count() php

i have the following code: $countries = $em->getRepository("country")->findAll(); $array = array(); $count = 0; foreach($countries as $country){ if(is_object($country)){ …
Laokoon
  • 1,241
  • 4
  • 24
  • 47
0
votes
2 answers

Repository Methods From Entity In ArrayCollection

So, we have two entities. One with repository and another is not. When we trying to get the data from another table we will get the ArrayCollection data. Question is how to call this entity repository methods? Is it real? Example: $system =…
user1954544
  • 1,619
  • 5
  • 26
  • 53
0
votes
2 answers

Flex Dropdownlist dataprovider reset on refresh

I have couple of dropdownlist controls, that shares the same dataprovider(same reference). I had overridden the set dataprovider method for a sort function.(code below). The issue is that, when I set this shared dataprovider to a new dropdownlist,…
Saju
  • 402
  • 3
  • 11
  • 30