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
0 answers

how to parse the web service result as arraycollection?

I am using Flex Builder and the IDE generates all the calls to my web service. I want to build a filter in a datagrid which it's provider is the result of a web service. I think I cannot build a filter using the web service response, or if somebody…
0
votes
1 answer

XML ArrayCollection applicationStorageDirectory

I have an XML file that I lives in the applicationStorageDirectory, I need to load the contents into an ArrayCollection. The XML looks like (see below), I can read and write to it but I need to stick the data in an ArrayCollection so I can load it…
0
votes
1 answer

DataGrid not appropriate dataProvider value

I have an ArrayCollection filled with 'o' objects. This AC should be the dataProvider of a DataGrid. After setting the dp: dgMT.dataProvider=acDataGrid the DataGrid contains only the last item of the arrayCollection. Code: [Bindable] public…
Alex
  • 258
  • 2
  • 20
0
votes
2 answers

sort ArrayCollection by date then time - Flex

I have an ArrayCollection that I'd like to sort by date and then time (in case there's two items with the same date). I've got it sorting by date fine (YYYY/MM/DD) but I can't figure out the time bit, time is in 24 hour format so the code would be…
0
votes
1 answer

ruby on rails select collection, filter results from array [enumerable]

current i am trying to restrict the information feed into an option select field to only display the criteria i have selected. with the code below this seems to be working = select("schedule", :selected_players, User.where(:team_id =>…
Boss Nass
  • 3,384
  • 9
  • 48
  • 90
0
votes
1 answer

How can i add collection of entities in doctrine2 to main entity

I have the class user { @manytomany private $countries } and class country { @manytomany private $user } Now when the new user is created then i want to add predefined list of countries to user $countries =…
user17
  • 383
  • 2
  • 4
  • 17
0
votes
1 answer

Populating ArrayCollection with HTTPService

I am creating a RSS Feed application based on a data, and I have the following: I have an ArrayCollection that is pre-populated with data. I am sorting through the ArrayCollection, get 1 piece of data (condition), and need to connect to an RSS feed…
tpae
  • 6,286
  • 2
  • 37
  • 64
0
votes
1 answer

array collection filter flex

hey guys, is it possible for me to filter only a certain column in a arraycollection but still displaying the other values in a datagrid?
Jasper
0
votes
1 answer

sqlite + flex 4.6 + array doubts

here is a flex newbie. I've tested the 'answer 2' code from Connecting Flex to SQLite but I modified it: throwed in a button, which purpose is to populate the list with data, after being clicked; result is half-success, got back "[object Object]"…
shazbat
  • 1
  • 1
0
votes
1 answer

ArrayCollection reverses order of my objects

I'll show you the function first. private var areaCollection:ArrayCollection; private function generateAreaCollection():void { areaCollection = new ArrayCollection(); areaCollection.addItem({Areal: "Totalareal:", Verdi:…
oletk
  • 125
  • 1
  • 1
  • 9
0
votes
1 answer

Rails 3/Ruby 1.9.3 working with Array#collect

I have the following scope in my Order model: scope :trial_almost_up, lambda { where :date_finished => 27.days.ago.midnight..27.days.ago.end_of_day } Each order is tied to a User. So if you run Order.trial_almost_up and get an array of orders and…
dennismonsewicz
  • 25,132
  • 33
  • 116
  • 189
0
votes
2 answers

How to separate ArrayCollection's into seperate files in Flex?

I build Adobe Air applications using Flex. After you introduce a few things like list of countries and list of nationalities in ArrayCollection format code gets messy and incredibly long. Is it possible to place ArrayCollection's into separate…
Cninroh
  • 1,796
  • 2
  • 21
  • 37
0
votes
0 answers

Flex 4 xml nodes doing something wierd

Ive been create some code that save an xml file and loads an xml file and it does both perfectly. here is where i found a bug. when i save a xml file then load it and finally re-save it does something really weird so i save a file that looks like…
Chito
  • 21
  • 1
0
votes
3 answers

Can you add an object to an arraycollection inside an arraycollection?

I have tried adding an object to an ArrayCollection inside an ArrayCollection and it isn't working. I am getting Error #1009 with the following implementation: for (var x:Number = 0; x < identifyArrayCollection.length; x++) { …
0
votes
1 answer

Flex tree control with array collection

Ive been struggling with this for hours! i really need help Im trying to populate a tree control with an external xml file brought in via arraycollection but i need to group the xml data to display in the tree Okay my external xml file is called…
Chito
  • 21
  • 1
1 2 3
22
23