[flexcoders] ArrayCollection of a specific type?

2010-02-11 Thread Nick Middleweek
Hello, Is it possible to specifc a class property to be an ArrayCollection of a certain Interface rather than just an ArrayCollection? Thanks, Nick

[flexcoders] ArrayCollection, addAll and Refresh

2010-02-11 Thread johncch85
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

RE: [flexcoders] ArrayCollection of VO's Memory Leak??

2009-10-23 Thread Alex Harui
, 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

Re: [flexcoders] ArrayCollection of VO's Memory Leak??

2009-10-23 Thread Jake Churchill
:* [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

RE: [flexcoders] ArrayCollection of VO's Memory Leak??

2009-10-23 Thread Alex Harui
: 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

Re: [flexcoders] ArrayCollection of VO's Memory Leak??

2009-10-23 Thread Jake Churchill
. 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

[flexcoders] ArrayCollection of VO's Memory Leak??

2009-10-22 Thread Jake Churchill
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

[flexcoders] ArrayCollection back to Query

2009-08-11 Thread Warren
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

RE: [flexcoders] ArrayCollection filterFunction returning item in array;

2009-08-08 Thread Alex Harui
...@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

[flexcoders] ArrayCollection filterFunction returning item in array;

2009-08-07 Thread kpjj31
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); }

RE: [flexcoders] ArrayCollection filterFunction returning item in array;

2009-08-07 Thread Tracy Spratt
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

Re: [flexcoders] ArrayCollection Does Not Show Items In Order When Passed to .NET WebService

2009-08-03 Thread Angelo Anolin
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

Re: [flexcoders] ArrayCollection Does Not Show Items In Order When Passed to .NET WebService

2009-07-07 Thread Angelo Anolin
. 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

Re: [flexcoders] ArrayCollection Does Not Show Items In Order When Passed to .NET WebService

2009-07-07 Thread Angelo Anolin
: 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

RE: [flexcoders] ArrayCollection Does Not Show Items In Order When Passed to .NET WebService

2009-07-07 Thread Tracy Spratt
) 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

RE: [flexcoders] ArrayCollection Does Not Show Items In Order When Passed to .NET WebService

2009-07-06 Thread Tracy Spratt
. _ 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

Re: [flexcoders] ArrayCollection Does Not Show Items In Order When Passed to .NET WebService

2009-07-03 Thread Angelo Anolin
: 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

Re: [flexcoders] ArrayCollection Does Not Show Items In Order When Passed to .NET WebService

2009-07-03 Thread Sam Lai
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

Re: [flexcoders] ArrayCollection Does Not Show Items In Order When Passed to .NET WebService

2009-07-02 Thread Sam Lai
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

Re: [flexcoders] ArrayCollection Does Not Show Items In Order When Passed to .NET WebService

2009-07-02 Thread Angelo Anolin
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

Re: [flexcoders] ArrayCollection Does Not Show Items In Order When Passed to .NET WebService

2009-07-02 Thread Sam Lai
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

[flexcoders] ArrayCollection Does Not Show Items In Order When Passed to .NET WebService

2009-07-01 Thread Angelo Anolin
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(),

[flexcoders] ArrayCollection/Min Max Problem

2009-06-30 Thread Sherif Abdou
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

Re: [flexcoders] ArrayCollection/Min Max Problem

2009-06-30 Thread Sam Lai
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

[flexcoders] ArrayCollection and Datagrid Binding and DataProvider Question

2009-06-11 Thread Angelo Anolin
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,

[flexcoders] ArrayCollection to Delimited String

2009-06-04 Thread Angelo Anolin
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

[flexcoders] ArrayCollection | DataGrid | SortonColumn

2009-04-08 Thread ilikeflex
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

RE: [flexcoders] ArrayCollection | DataGrid | SortonColumn

2009-04-08 Thread Alex Harui
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

[flexcoders] arraycollection vs listcollectionview

2009-03-27 Thread arieljake
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

RE: [flexcoders] arraycollection vs listcollectionview

2009-03-27 Thread Scott
: 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

RE: [flexcoders] arraycollection vs listcollectionview

2009-03-27 Thread Alex Harui
[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

[flexcoders] Arraycollection to xml

2009-03-20 Thread venkat eswar
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

[flexcoders] ArrayCollection or XML

2009-03-11 Thread tiend...@ezweb.ne.jp
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

RE: [flexcoders] ArrayCollection or XML

2009-03-11 Thread Tracy Spratt
...@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

[flexcoders] ArrayCollection vs XMLListCollection

2009-02-22 Thread brad.bueche
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

Re: [flexcoders] ArrayCollection vs XMLListCollection

2009-02-22 Thread Jeffry Houser
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

RE: [flexcoders] ArrayCollection vs XMLListCollection

2009-02-22 Thread Alex Harui
: 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

Re: [flexcoders] ArrayCollection DataProvider question.

2009-02-11 Thread - -
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

RE: [flexcoders] ArrayCollection DataProvider question.

2009-02-11 Thread Tracy Spratt
: [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

[flexcoders] ArrayCollection DataProvider question.

2009-02-10 Thread sailorsea21
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

Re: [flexcoders] ArrayCollection DataProvider question.

2009-02-10 Thread Henrique
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

RE: [flexcoders] ArrayCollection DataProvider question.

2009-02-10 Thread Tracy Spratt
, 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

[flexcoders] ArrayCollection COLLECTION_CHANGE event doesn't fire right away?

2009-01-23 Thread Keith Hughitt
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

RE: [flexcoders] ArrayCollection COLLECTION_CHANGE event doesn't fire right away?

2009-01-23 Thread Alex Harui
@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

[flexcoders] arraycollection merge

2008-12-06 Thread hworke
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

RE: [flexcoders] arraycollection merge

2008-12-06 Thread Alex Harui
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

Re: [flexcoders] ArrayCollection

2008-11-14 Thread Mike Duncan
-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

[flexcoders] ArrayCollection

2008-11-13 Thread jch92592
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

RE: [flexcoders] ArrayCollection

2008-11-13 Thread Tracy Spratt
(), 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

Re: [flexcoders] ArrayCollection

2008-11-13 Thread Mike Duncan
-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

RE: [flexcoders] ArrayCollection

2008-11-13 Thread Tracy Spratt
: [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

Re: [flexcoders] ArrayCollection

2008-11-13 Thread Fotis Chatzinikos
-- *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

RE: [flexcoders] ArrayCollection

2008-11-13 Thread Tracy Spratt
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

Re: [flexcoders] ArrayCollection

2008-11-13 Thread Mike Duncan
*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

Re: [flexcoders] ArrayCollection

2008-11-13 Thread Fotis Chatzinikos
*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

RE: [flexcoders] ArrayCollection

2008-11-13 Thread Tracy Spratt
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

RE: [flexcoders] ArrayCollection

2008-11-13 Thread Tracy Spratt
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

Re: [flexcoders] ArrayCollection

2008-11-13 Thread Fotis Chatzinikos
, 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

[flexcoders] ArrayCollection bound to an Array.

2008-08-26 Thread flexaustin
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

RE: [flexcoders] ArrayCollection bound to an Array.

2008-08-26 Thread Battershall, Jeff
: [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

Re: [flexcoders] ArrayCollection bound to an Array.

2008-08-26 Thread Sefi Ninio
%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

[flexcoders] ArrayCollection ChangeEvent does noget get dispatched when filterFunction is set

2008-07-26 Thread dopenhagen
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 ?

RE: [flexcoders] ArrayCollection ChangeEvent does noget get dispatched when filterFunction is set

2008-07-26 Thread Alex Harui
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

Re: [flexcoders] ArrayCollection filterFunction only gets called on root item

2008-07-22 Thread Scott Bachman
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

[flexcoders] ArrayCollection filterFunction only gets called on root item

2008-07-21 Thread Greg Hess
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

[flexcoders] arrayCollection event COLLECTION_CHANGE issues?

2008-07-17 Thread Scott
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).

Re: [flexcoders] arrayCollection event COLLECTION_CHANGE issues?

2008-07-17 Thread Daniel Gold
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;

Re: [flexcoders] arrayCollection event COLLECTION_CHANGE issues?

2008-07-17 Thread Scott
:[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

Re: [flexcoders] arrayCollection event COLLECTION_CHANGE issues?

2008-07-17 Thread Scott
: 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

[flexcoders] ArrayCollection (AS) and ArrayList (java) not in sync)

2008-04-23 Thread Luke Vanderfluit
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

Re: [flexcoders] ArrayCollection (AS) and ArrayList (java) not in sync)

2008-04-23 Thread Luke Vanderfluit
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

Re: [flexcoders] arraycollection and tree

2008-03-25 Thread Nayan Savla
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

[flexcoders] arraycollection and tree

2008-03-24 Thread Luke Vanderfluit
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

[flexcoders] ArrayCollection of String as single-column DataGrid provider

2008-03-21 Thread mario.blataric
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

[flexcoders] ArrayCollection refresh event listener

2008-03-21 Thread loc_tran106
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

RE: [flexcoders] ArrayCollection refresh event listener

2008-03-21 Thread Alex Harui
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

RE: [flexcoders] ArrayCollection of String as single-column DataGrid provider

2008-03-21 Thread Alex Harui
@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

[flexcoders] ArrayCollection question in Cairngorm?

2007-12-17 Thread markflex2007
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

Re: [flexcoders] ArrayCollection question in Cairngorm?

2007-12-17 Thread Sanjay Varma
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

Re: [flexcoders] ArrayCollection question in Cairngorm?

2007-12-17 Thread João Fernandes
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

Re: [flexcoders] ArrayCollection question in Cairngorm?

2007-12-17 Thread Mark Shen
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

[flexcoders] ArrayCollection Question

2007-10-27 Thread Mark Forsberg
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?

RE: [flexcoders] ArrayCollection Question

2007-10-27 Thread Alex Harui
:[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

[flexcoders] ArrayCollection XMLList?

2007-10-05 Thread candysmate
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

Re: [flexcoders] ArrayCollection XMLList?

2007-10-05 Thread Scott - FastLane
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

RE: [flexcoders] ArrayCollection XMLList?

2007-10-05 Thread Alex Harui
] 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

RE: [flexcoders] ArrayCollection XMLList?

2007-10-05 Thread Tracy Spratt
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

[flexcoders] arraycollection contains() method

2007-10-02 Thread freska
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

RE: [flexcoders] arraycollection contains() method

2007-10-02 Thread Alex Harui
@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

[flexcoders] ArrayCollection not working? Pulling out my HAIR!!!

2007-06-06 Thread Jason Ervin
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

Re: [flexcoders] ArrayCollection not working? Pulling out my HAIR!!!

2007-06-06 Thread Brendan Meutzner
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

[flexcoders] ArrayCollection to xml file function

2007-03-30 Thread Impudent1
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

Re: [flexcoders] ArrayCollection problem (binding to a Datagrid)

2007-03-25 Thread leds usop
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);

[flexcoders] ArrayCollection problem (binding to a Datagrid)

2007-03-23 Thread Nicolas Boulet-Lavoie
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

RE: [flexcoders] ArrayCollection problem (binding to a Datagrid)

2007-03-23 Thread Alex Harui
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

Re: [flexcoders] ArrayCollection length

2007-02-28 Thread feiy
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:

[flexcoders] ArrayCollection length

2007-02-27 Thread Mehul Doshi
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.

[flexcoders] ArrayCollection to comma-delimited list?

2007-02-26 Thread qnotemedia
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

[flexcoders] ArrayCollection contains not working

2007-02-17 Thread Carlos Rovira
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:

[flexcoders] ArrayCollection Splice?

2007-02-14 Thread napearson99
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   2   >