Hello,
Is it possible to specifc a class property to be an ArrayCollection of a
certain Interface rather than just an ArrayCollection?
Thanks,
Nick
I understand that ArrayCollection.addAll was added in flex sdk 3.4. I'm coding
a simple application and I'm hitting this problem. I would like to ask if
anyone knows what's happening:
Here's the source, just a simple mxml:
?xml version=1.0 encoding=utf-8?
mx:Application
, October 22, 2009 10:57 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] ArrayCollection of VO's Memory Leak??
Hi all,
I have a charting application where I have an ArrayCollection of VO's. The
chart has several series, each looking at one property in the VO.
There are several
:* [flexcoders] ArrayCollection of VO's Memory Leak??
Hi all,
I have a charting application where I have an ArrayCollection of VO's. The
chart has several series, each looking at one property in the VO.
There are several controls that when changed, require a re-calculation of
the VO's
: Friday, October 23, 2009 9:30 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] ArrayCollection of VO's Memory Leak??
Where do you go to see that? All I can see is the number of instances an
object has and the memory those instances take up?
On Fri, Oct 23, 2009 at 1:10 AM, Alex Harui
aha
. http://www.adobe.com/
Blog: http://blogs.adobe.com/aharui
*From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On
Behalf Of *Jake Churchill
*Sent:* Friday, October 23, 2009 9:30 AM
*To:* flexcoders@yahoogroups.com
*Subject:* Re: [flexcoders] ArrayCollection of VO's
Hi all,
I have a charting application where I have an ArrayCollection of VO's. The
chart has several series, each looking at one property in the VO.
There are several controls that when changed, require a re-calculation of
the VO's in the ArrayCollection. Before I do the re-calculation, I call
I'm using Remote Objects in Flex with Cold Fusion 8 to retrieve data. Flex
makes a call to a Cold Fusion CFC which runs a query and sends that back to
Flex. I pick it up in Flex and attach it to an ArrayCollection which powers my
grids. No problems.
Now I want to go the other way. I want
...@yahoogroups.com] On Behalf
Of kpjj31
Sent: Friday, August 07, 2009 3:02 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] ArrayCollection filterFunction returning item in array;
Is it possible to use the ArrayCollection filterFunction that returns items
from an Array?
This returns null
Is it possible to use the ArrayCollection filterFunction that returns items
from an Array?
This returns null...
private function filterStatus(item:Object):Boolean {
var statusgroup:Array = [0, 1, 88, 44];
return item.STATUSID in (statusgroup);
}
the code up into smaller
parts and debug it.
Tracy Spratt,
Lariat Services, development services available
_
From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of kpjj31
Sent: Friday, August 07, 2009 6:02 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders
From: Tracy Spratt tr...@nts3rd.com
To: flexcoders@yahoogroups.com
Sent: Wednesday, 8 July, 2009 12:48:27
Subject: RE: [flexcoders] ArrayCollection Does Not Show Items In Order When
Passed to .NET WebService
var sXML:String = “root”;
sXML += myXMLListCollection .toXMLSTring
.
Thanks.
_ _ __
From: Sam Lai samuel.lai@ gmail. com
To: flexcod...@yahoogro ups.com
Sent: Thursday, 2 July, 2009 15:46:58
Subject: Re: [flexcoders] ArrayCollection Does Not Show Items In Order
When
Passed to .NET WebService
How is it being parsed in .NET
: Tuesday, 7 July, 2009 4:45:56
Subject: RE: [flexcoders] ArrayCollection Does Not Show Items In Order When
Passed to .NET WebService
Why not use XMLListCollection and send the xml to .net as a string? There is
little value in building an ArrayCollection of generic obects. You can
sort/filter
) As DataTable
.
Tracy Spratt,
Lariat Services, development services available
_
From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Angelo Anolin
Sent: Tuesday, July 07, 2009 8:09 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] ArrayCollection
.
_
From: Sam Lai samuel@gmail.com
To: flexcoders@yahoogroups.com
Sent: Friday, 3 July, 2009 13:52:12
Subject: Re: [flexcoders] ArrayCollection Does Not Show Items In Order When
Passed to .NET WebService
Instead of using an array list and trying to emulate the type-less
abilities of AS3
: Friday, 3 July, 2009 13:52:12
Subject: Re: [flexcoders] ArrayCollection Does Not Show Items In Order When
Passed to .NET WebService
Instead of using an array list and trying to emulate the type-less
abilities of AS3, I'd try to map the XML to typed objects in .NET. Or
does the XML from your
To: flexcoders@yahoogroups.com
Sent: Friday, 3 July, 2009 13:52:12
Subject: Re: [flexcoders] ArrayCollection Does Not Show Items In Order When
Passed to .NET WebService
Instead of using an array list and trying to emulate the type-less
abilities of AS3, I'd try to map the XML to typed objects in .NET
How is it being parsed in .NET? You can parse it into a hashtable, or
better yet, use a pre-defined object.
Not sure why the order is different, but it is probably fragile to
rely on the order in this case.
2009/7/2 Angelo Anolin angelo_ano...@yahoo.com:
Hi FlexCoders,
I have an array
and be able to parse it properly.
Thanks.
From: Sam Lai samuel@gmail.com
To: flexcoders@yahoogroups.com
Sent: Thursday, 2 July, 2009 15:46:58
Subject: Re: [flexcoders] ArrayCollection Does Not Show Items In Order When
Passed to .NET WebService
How
To: flexcoders@yahoogroups.com
Sent: Thursday, 2 July, 2009 15:46:58
Subject: Re: [flexcoders] ArrayCollection Does Not Show Items In Order When
Passed to .NET WebService
How is it being parsed in .NET? You can parse it into a hashtable, or
better yet, use a pre-defined object.
Not sure why
Hi FlexCoders,
I have an array collection which I am populating as follows:
var oTemp:Object;
var xl:XMLList = _xmlData.children();
var i:int;
for(i = 0; i xl.length(); i++)
{
oTemp = {ID_TAG:xl[i].ID.text(), CAT_TAG:xl[i].CAT.text(),
DET_TAG:xl[i].DET.text(),
I have an array collection and I am trying to find the Min/Max of the values in
groups. For Example my array collection has 100 values. I want to find the Min
Value/Max Value between 1 to 26, 2 to 27, 3 to 28 , etc I tried to create 2
for loops in each other but for some reason during
Maybe your trace statement is in the wrong place? Seeing your code
would help in solving the problem.
Another way to solve these problems is to sort the data (sub)set, then
just pull the first and last elements. Depending on what you want to
do with the data after, this may be faster.
2009/7/1
Good day.
Learning Flex here for the past two (like three actually) weeks. Using only
mxml compiler.
I have a question with regards to the above subject:
Assuming I declared an ArrayCollection as follows:
[Bindable] private var _arrItems:ArrayCollection = new
ArrayCollection([{itemNo:1,
Hi FlexCoders,
Supposed I have an ArrayCollection variable represented like below:
mx:ArrayCollection id=myAC
mx:Array id=myArray
mx:Object label=MI data=Lansing/
mx:Object label=MO data=Jefferson City/
mx:Object label=MA data=Boston/
mx:Object label=MT data=Helena/
mx:Object label=ME
Hi
I have datagrid with 150 records. I do sorting when someone clicks on datagrid.
And i am using the ArrayCollection as dataprovider to the datagrid.When user
changes the option in combo box then show the new data in the datagrid.
In my command class i am doing
Of ilikeflex
Sent: Wednesday, April 08, 2009 12:06 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] ArrayCollection | DataGrid | SortonColumn
Hi
I have datagrid with 150 records. I do sorting when someone clicks on datagrid.
And i am using the ArrayCollection as dataprovider
I'm confused.
I have an ArrayCollection. And I listen for the COLLECTION_CHANGE.Remove event
to know when to delete the item from the database.
For displaying the contents of my ArrayCollection, i am using a
ListCollectionView with a filter function applied to it, so that the filter
function
: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of arieljake
Sent: Friday, March 27, 2009 1:33 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] arraycollection vs listcollectionview
I'm confused.
I have an ArrayCollection. And I listen for the COLLECTION_CHANGE.Remove
[mailto:flexcod...@yahoogroups.com] On Behalf
Of Scott
Sent: Friday, March 27, 2009 4:57 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] arraycollection vs listcollectionview
That's a nasty little bug.
I haven't encountered that myself yet but I can see where that would happen.
You may
Hi all,
I am using advanceddatagrid with treestructure. I used Arraycollection
as Dataprovider for advanceddatagrid.Now i want to convert the
Arraycollection to xml for storing it to database with php as backend.
How is it possible. Please help me
Hi all guru,
[Database Table]
id
firstname
lastname
At Backend I use PHP and Mysql. PHP script can return Array or XML string.
At Flex app, I use Remote Object
1)PHP script return Array:
and in Flex code I get Array as :
dp = new ArrayCollection( ArrayUtil.toArray(event.result));
If I show dp
...@yahoogroups.com] On
Behalf Of tiend...@ezweb.ne.jp
Sent: Wednesday, March 11, 2009 9:20 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] ArrayCollection or XML
Hi all guru,
[Database Table]
id
firstname
lastname
At Backend I use PHP and Mysql. PHP script can return Array or XML string.
At Flex app
How come when I'm setting up a data grid using an ArrayCollection as
the datasource I dont have to specify the contents of the data grid
columns? I can just do this:
mx:DataGrid id=dg1 x=42 y=0 width=950 height=100
dataProvider={bookData.lastResult.books.stock} /
But in
Some code magic in the background.
I bet if you drill down into the component code for DataGrid and/or
DataGridColumn you'll find comments that explain this.
If I had to guess, it is relatively [knock on wood] easy to parse an
object and find the properties on it. I think a for loop will
: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf
Of Jeffry Houser
Sent: Sunday, February 22, 2009 2:24 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] ArrayCollection vs XMLListCollection
Some code magic in the background.
I bet if you drill down into the component code
inXMLdays.elements())
Arraydays.addItem(ourxml);}
Is this ok?
Thanks
-David
From: Tracy Spratt tspr...@lariatinc.com
To: flexcoders@yahoogroups.com
Sent: Tuesday, February 10, 2009 4:19:53 PM
Subject: RE: [flexcoders] ArrayCollection DataProvider question.
I
: [flexcoders] ArrayCollection DataProvider question.
Hi Tracy, this is how I get the XML info into an ArrayCollection:
mx:HTTPService url=days.php useProxy=false method=POST id=Days
resultFormat=e4x result=get_days(event)
private function get_days(event:ResultEvent):void
I loaded the following xml as an ArrayCollection.
data
result id=1
datetoday/date
yes13154/yes
no654321/no
/result
result id=1
dateyesterday/date
yes21354/yes
no5468432/no
/result
result id=2
datetoday/date
yes2665/yes
Humm, you have to make a filterFunction, like this:
private function filterFucntion(item:Object):Boolean
{
return item.id == 1;
}
Henrique F. Marino
blog.dclick.com.br
www.dclick.com.br
On Tue, Feb 10, 2009 at 3:35 PM, sailorsea21 sailorse...@yahoo.com wrote:
I loaded the following xml as
, 2009 2:19 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] ArrayCollection DataProvider question.
Humm, you have to make a filterFunction, like this:
private function filterFucntion(item:Object):Boolean
{
return item.id == 1;
}
Henrique F. Marino
blog.dclick.com.br http
Hi all,
I'm trying to detect changes in an ArrayCollection which is bound to a
DataGrid with some editable components. For some reason, however, the
event only seems to fire when the focus is change. For example, I
check a check-box, and nothing happens. When I then click somewhere
outside of the
@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf
Of Keith Hughitt
Sent: Friday, January 23, 2009 8:24 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] ArrayCollection COLLECTION_CHANGE event doesn't fire
right away?
Hi all,
I'm trying to detect changes in an ArrayCollection which
Hi I have three different arraycollections and
I want to bind them all as dataprovider to a
datagrid. How do I do that? Can a datagrid have
have 3 dataprovider and can it display all these
dataproviders' info at the same time? Or I do
need to merge my three arraycollections into one
and then
This might help:
http://blogs.adobe.com/aharui/2008/03/custom_ilists_checkboxdatagrid_1.html
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of hworke
Sent: Saturday, December 06, 2008 5:31 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] arraycollection merge
Hi I
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Tracy Spratt wrote:
The issue is that there is only one “lastResult” for the entire framework.
“There is only one result” No, this is not correct. Because they are
asynchronous, there can be multiple pending RPC data calls. There is no
All,
I am using an ArrayCollection that I populate with the results from a
ColdFusion RPC.
All works well when there is more than 1 record. When only 1 record is
returned, the data is not assigned to the ArrayCollection.
Any suggestions?
Thank you,
jh
(), which is in one of the
Utils packages.
Tracy
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of jch92592
Sent: Thursday, November 13, 2008 2:18 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] ArrayCollection
All,
I am using
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
This is how I got around this...
- -
import mx.uils.ObjectProxy;
import mx.collections.ArrayCollection;
[Bindable] private scans:ArrayCollection;
private function handleGetScansResults(event:ResultEvent):void {
//Note: getScan is a
: [flexcoders] ArrayCollection
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
This is how I got around this...
- -
import mx.uils.ObjectProxy;
import mx.collections.ArrayCollection;
[Bindable] private scans:ArrayCollection;
private function handleGetScansResults(event:ResultEvent):void
--
*From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
Behalf Of *Mike Duncan
*Sent:* Thursday, November 13, 2008 3:06 PM
*To:* flexcoders@yahoogroups.com
*Subject:* Re: [flexcoders] ArrayCollection
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Of Fotis Chatzinikos
Sent: Thursday, November 13, 2008 4:21 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] ArrayCollection
Sorry is that a problem with Cold Fusion?
I get single element ArrayCollections from by java backend all the time
(I think? :-)
On Thu, Nov 13, 2008 at 11:32 PM
*From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
*On Behalf Of *Mike Duncan
*Sent:* Thursday, November 13, 2008 3:06 PM
*To:* flexcoders@yahoogroups.com
*Subject:* Re: [flexcoders] ArrayCollection
This is how I got around this...
-
import
*Sent:* Thursday, November 13, 2008 3:06 PM
*To:* flexcoders@yahoogroups.com flexcoders%40yahoogroups.com
*Subject:* Re: [flexcoders] ArrayCollection
This is how I got around this...
-
import mx.uils.ObjectProxy;
import mx.collections.ArrayCollection;
[Bindable
mailto:flexcoders%40yahoogroups.com
*Subject:* Re: [flexcoders] ArrayCollection
This is how I got around this...
-
import mx.uils.ObjectProxy;
import mx.collections.ArrayCollection;
[Bindable] private scans:ArrayCollection;
private function handleGetScansResults(event:ResultEvent
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] ArrayCollection
The issue is that there is only one lastResult for the entire
framework.
There is only one result No, this is not correct. Because they are
asynchronous, there can be multiple pending RPC data calls. There is no
assurance
, November 13, 2008 4:21 PM
*To:* flexcoders@yahoogroups.com
*Subject:* Re: [flexcoders] ArrayCollection
Sorry is that a problem with Cold Fusion?
I get single element ArrayCollections from by java backend all the time (I
think? :-)
On Thu, Nov 13, 2008 at 11:32 PM, Tracy Spratt [EMAIL
Is it possible to bind an ArrayCOllection to an array, like so
public var summDataForControllers:Array = new Array;
public var _summDataForContrAC:ArrayCollection = new
ArrayCollection({summDataForControllers});
I have a modelLocator that contains these to items
: [flexcoders] ArrayCollection bound to an Array.
Is it possible to bind an ArrayCOllection to an array, like so
public var summDataForControllers:Array = new Array;
public var _summDataForContrAC:ArrayCollection = new
ArrayCollection({summDataForControllers});
I have
%40yahoogroups.com] On
Behalf Of flexaustin
Sent: Tuesday, August 26, 2008 11:17 AM
To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com
Subject: [flexcoders] ArrayCollection bound to an Array.
Is it possible to bind an ArrayCOllection to an array, like so
public var
It appears that an arraycollection's changeEvent
(CollectionEvent.COLLECTION_CHANGE) does not get called correctly when
FilterFunction is set.
Is anyone else experiencing this behavior, and if yes: is it a feature
or a bug ?
To: flexcoders@yahoogroups.com
Subject: [flexcoders] ArrayCollection ChangeEvent does noget get
dispatched when filterFunction is set
It appears that an arraycollection's changeEvent
(CollectionEvent.COLLECTION_CHANGE) does not get called correctly when
FilterFunction is set.
Is anyone else
The filterFunction only applies to the ArrayCollection. By hierarchy, I
assume you mean you have an ArrayCollection that contains ArrayCollections.
In other words, objects in your original ArrayCollection have, say, a
children ArrayCollection. In order to do what you're describing, you would
have
Hi All,
I have a tree control who's data provider is an ArrayCollection
holding a single File object I defined. The File object represents the
root of a remote file system hierarchy that has children getter that
supports the tree control and each child is rendered in the tree with
an
First thanks for all your help guys. I'm making nice strides learning
this language quickly.
I'm working with events now. I created an arrayCollection to capture a
query from coldfusion. I have the data being dumped into this variable
just fine (I can do a combobox on it and see all of it).
You're initializing the acUser collection when the singleton is created and
adding a listener, which is fine. However, when you're getting the results
back, you're changing the acUser collection reference to a different
ArrayCollection
GlobalVars.instance.acUser = event.result as ArrayCollection;
:[EMAIL PROTECTED] On
Behalf Of Daniel Gold
Sent: Thursday, July 17, 2008 8:45 AM
To: flexcoders@yahoogroups.com
Subject: {Disarmed} Re: [flexcoders] arrayCollection event
COLLECTION_CHANGE issues?
You're initializing the acUser collection when the singleton is created
and adding a listener, which
: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Scott
Sent: Thursday, July 17, 2008 5:24 PM
To: flexcoders@yahoogroups.com
Subject: {Disarmed} Re: [flexcoders] arrayCollection event
COLLECTION_CHANGE issues?
When I do that I get an error that the property is not defined. I can
do
Hi.
Im having a problem retrieving a list of objects from the server.
Im using blazeds and have successfully retrieved lists of objects using the
following construct:
Im dealing with a list that has Site Objects
mx:RemoteObject id=srv destination=theService/
mx:DataGrid id=sites
Hi.
As always. On further inspection the array on the server isnt getting it right.
Sorry for the noise )-:
Kr.
L.
Luke Vanderfluit wrote:
Hi.
Im having a problem retrieving a list of objects from the server.
Im using blazeds and have successfully retrieved lists of objects using the
Hi Luke,
Just create a List in Java and return it. alternatively you can add it
to a Value Object and then return it. below is example of my function,
CategoriesVo is simple java class with three public variables.
public List getCategoriesAll(){
List list = new
Hi.
I am using remoteobject to get stuff from a database (java/mysql). I
want to represent the List, generated on the server side and sent to the
client as an arraycollection, as a tree.
Does anyone have examples of how to do this.
I have been reading the online docs but Im making very slow
Hi!
I have ArrayCollection filled with String:
mx:ArrayCollection id=dp
mx:StringString 1/mx:String
mx:StringString 2/mx:String
/mx:ArrayCollection
DataGrid's dataProvider is array collection above and DataGrid has
only one column.
What I want is to have ComboBox as inplace
I wanted to do some custom calculations on the filtered data of an
arraycollection.
I set the filterfunction for the ac, and then called ac.refresh().
What is the proper event to listen for so I can handle my calculations
when the refresh on is complete?
Thanks,
-Loc
CollectionEvent.CHANGE with CollectionEventKind.REFRESH
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of loc_tran106
Sent: Friday, March 21, 2008 10:13 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] ArrayCollection refresh event
@yahoogroups.com
Subject: [flexcoders] ArrayCollection of String as single-column
DataGrid provider
Hi!
I have ArrayCollection filled with String:
mx:ArrayCollection id=dp
mx:StringString 1/mx:String
mx:StringString 2/mx:String
/mx:ArrayCollection
DataGrid's dataProvider is array collection
Hi,
I have a simple cfc, the function is like this,it get a department
list
cffunction name=getDept displayname=getDept access=remote
output=false returntype=query
cfquery name=getDepartment datasource=bursary
SELECT Id, Dept
None
- Original Message
From: markflex2007 [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Monday, December 17, 2007 12:22:59 PM
Subject: [flexcoders] ArrayCollection question in Cairngorm?
Hi,
I have a simple cfc, the function is like
Mark, your result is just fine, just define a labelField or a
labelFunction in your combobox.
something like this
mx:ComboBox labelField=DepartmentName
dataProvider={modelLocator.acDept}/
--
João Fernandes
http://www.onflexwithcf.org
http://www.riapt.org
Thanks João Fernandes .
Mark
- Original Message
From: João Fernandes [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Monday, December 17, 2007 1:28:20 PM
Subject: Re: [flexcoders] ArrayCollection question in Cairngorm?
Mark, your result is just fine, just define a labelField
I am dragging/dropping rows from one grid to another. At the drop I
will be calling a .cfc to get more information for the second
datagrid.
I have several questions about the data that I'm adding.
1. To add the data manually after I've captured my drop event do I
need to use the Icollection?
:[EMAIL PROTECTED] On
Behalf Of Mark Forsberg
Sent: Friday, October 26, 2007 6:30 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] ArrayCollection Question
I am dragging/dropping rows from one grid to another. At the drop I
will be calling a .cfc to get more information for the second
I have an ArrayCollection in Flex which contains the delivery
information for a given stock item:
boxes quantity
10 20
15 20
17 20
etc
how can I convert this into an XMLList so that it can be a
dataProvider for a tree control where each line is a branch
Assuming your ArrayCollection contains strongly typed objects, I think
you can make the ArrayCollection itself be the dataprovider for your
tree. Your class (the data stored in the ArrayCollection) just needs to
implement the get children():Array and get label():String method iirc.
hth
Scott
] On
Behalf Of Scott - FastLane
Sent: Friday, October 05, 2007 12:01 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] ArrayCollection XMLList?
Assuming your ArrayCollection contains strongly typed objects, I think
you can make the ArrayCollection itself be the dataprovider for your
tree
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] ArrayCollection XMLList?
Whether the objects are strongly-typed or not, you can stick the AC in
as the Tree's DP, but you'll need a custom ITreeDataDescriptor to tell
the tree what is a branch and what the children
Hi there,
I want to compare two arraycollection and take the different items
out. I tried using contains() method to check if the first item of
arraycollection arrayControl is in arraycollection arrayColPref, but
it just doesn't work. I mean, it is supposed to say True instead of
False. So, here's
@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of freska
Sent: Monday, October 01, 2007 11:29 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] arraycollection contains() method
Hi there,
I want to compare two arraycollection and take the different items
out. I tried using contains() method
Hey everyone I am having issues with using an arraycollection as a
dataprovider. I start with an xml variable (see below) then I convert
it to an ArrayCollection using ArrayUtil.toArray and I use the result
as a dataprovider. If I trace the dataprovider it prints out the xml
data, but my chart is
Any reason you're going through the trouble of converting to an
ArrayCollection? The following will work with your XML data just fine...
mx:ColumnChart id=mybarchart dataProvider={billData.bill}
showDataTips=true paddingLeft=5 paddingRight=5 width=100%
height=100%
mx:horizontalAxis
I am trying to get some things working with my app and apollo preview.
I can get it to save a file locally when it goes offline fine. But I would like
to start extending it so that I can give it an arrayCollection(s) and it will
write out an xml structured file.
This is what I am using to save
this has been addressed in a previous post.
do a type check for objectproxy before assigning here:
grilleTerrainsACDP = event.result.terrains.terrain;
to have this:
if(event.result.terrains.terrain is ObjectProxy){
var t:Array=
ArrayUtil.toArray(event.result.terrains.terrain);
Hi,
When I try to bind an empty ArrayCollection or with only 1 item to a
Datagrid, I'm getting a runtime error (sorry it's in french but the
error number means something in this case):
TypeError: Error #1034: Echec de la contrainte de type : conversion de
mx.utils::[EMAIL PROTECTED] en
is an ObjectProxy or an
Array/ArrayCollection and convert it to an array if needed.
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Nicolas Boulet-Lavoie
Sent: Friday, March 23, 2007 11:04 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders
u can use the
mx.collectionsfile:///home/feiy/Programs/Flex2/flex201_documentation/langref/mx/collections/package-detail.html.ArrayCollection
's
filterFunctionfile:///home/feiy/Programs/Flex2/flex201_documentation/langref/mx/collections/ListCollectionView.html#filterFunction:
If I have my dataprovider in the following manner:
var dataProvider = [{Date: 02-12-2007, Company1: 20, Company2: 30},
{Date: 02-09-2007, Company1: 20, Company2: 30},
{Date: 02-08-2007, Company1: 20, Company2: 30}]
How can I determine programatically:
1.
Couldn't quite figure this one out. I have a multi-level
arraycollection and I need to write it out in flex as two separated
lists - i.e.
itemA[0]: 1, 2, 3, 4
itemB[1]: 5, 6
itemC[2]: 7, 8
I'm currently using two repeaters with mx:Text to properly view the
data, but of course, that just ends
Hi,
I've been trying to filter an ArrayCollection with the objects that not
exist in another ArrayCollection. I use the contains method, but it seems
that does not work.
In the following thread seems that others are having the same problem with
XMLListCollectionView:
I'm porting over one of Ely's component's data provider from accepting
an Array to accept an ArrayCollection. He uses item.splice a lot
where item is typed as an array.
I want the same functionality in an array collection. Item[0].splice
works, but im not sure this is the right way to do it.
1 - 100 of 128 matches
Mail list logo