RE: [flexcoders] Re: Setting data from web service to ArrayCollection.

2009-01-29 Thread Tracy Spratt
available From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Amy Sent: Wednesday, January 28, 2009 11:47 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Setting data from web service to ArrayCollection. --- In flexcoders

[flexcoders] Re: Setting data from web service to ArrayCollection.

2009-01-28 Thread Amy
--- In flexcoders@yahoogroups.com, Wally Kolcz wko...@... wrote: Don't understand the question. Please educate me :-) Collection=multiple things Unique=1 thing Usually, in a database you have a field that acts as a primary key, which means that there's only ever going to be one record in the

re: [flexcoders] Re: Setting data from web service to ArrayCollection.

2009-01-28 Thread Wally Kolcz
28, 2009 5:09 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Setting data from web service to ArrayCollection. --- In flexcoders@yahoogroups.com, Wally Kolcz wko...@... wrote: Don't understand the question. Please educate me :-) Collection=multiple things Unique=1 thing Usually

[flexcoders] Re: Setting data from web service to ArrayCollection.

2009-01-28 Thread valdhor
Spratt tspr...@... Sent: Tuesday, January 27, 2009 1:20 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: Setting data from web service to ArrayCollection. I do not know Cold Fusion, but. Which RPC protocol are you actually using? Have you set resultFormat? Tracy

[flexcoders] Re: Setting data from web service to ArrayCollection.

2009-01-28 Thread Amy
--- In flexcoders@yahoogroups.com, Wally Kolcz wko...@... wrote: Well, since this is question only contains a single example, the issue of not knowing is going to be more for other items in this project such as a list of ALL the projects, or ALL the teams, or ALL the users, etc. I suppose

[flexcoders] Re: Setting data from web service to ArrayCollection.

2009-01-27 Thread valdhor
Perhaps you have an arrayCollection of arrayCollections (What does the debugger show as the result type?). You may like to try... var resultArrColl:ArrayCollection = e.result.source; var firstResult:ArrayCollection = resultArrColl[0]; Alert.show(firstResult[0]); --- In

Re: [flexcoders] Re: Setting data from web service to ArrayCollection.

2009-01-27 Thread Fotis Chatzinikos
Why do not you try Alert.show(ObjectUtil.toString(e.result)) //replace e.result with e to see the whole event ObjectUtil is very useful in situation like this as it show a textual representation of any object graph On Tue, Jan 27, 2009 at 5:37 PM, valdhor valdhorli...@embarqmail.comwrote:

Re: [flexcoders] Re: Setting data from web service to ArrayCollection.

2009-01-27 Thread Wally Kolcz
From: Fotis Chatzinikos fotis.chatzini...@gmail.com Sent: Tuesday, January 27, 2009 7:42 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: Setting data from web service to ArrayCollection. Why do not you try Alert.show(ObjectUtil.toString(e.result

Re: [flexcoders] Re: Setting data from web service to ArrayCollection.

2009-01-27 Thread Wally Kolcz
and then call the firstName variable? From: Fotis Chatzinikos fotis.chatzini...@gmail.com Sent: Tuesday, January 27, 2009 7:42 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: Setting data from web service to ArrayCollection. Why do not you try

Re: [flexcoders] Re: Setting data from web service to ArrayCollection.

2009-01-27 Thread Fotis Chatzinikos
AM *To*: flexcoders@yahoogroups.com *Subject*: Re: [flexcoders] Re: Setting data from web service to ArrayCollection. Why do not you try Alert.show(ObjectUtil.toString(e.result)) //replace e.result with e to see the whole event ObjectUtil is very useful in situation like this as it show

Re: [flexcoders] Re: Setting data from web service to ArrayCollection.

2009-01-27 Thread Wally Kolcz
@yahoogroups.com Subject: Re: [flexcoders] Re: Setting data from web service to ArrayCollection. Try the following: userData:ArrayCollection = event.result as ArrayCollection ; Then it seems that the array contains untyped object (Dictionary/hashmap type) so: userData.getItemAt(0)[FIRSTNAME] should give

[flexcoders] Re: Setting data from web service to ArrayCollection.

2009-01-27 Thread Amy
--- In flexcoders@yahoogroups.com, Wally Kolcz wko...@... wrote: I moved my CFC and database to my localhost so I can debug the webservice output and see it. I am a wee bit confused. The results panel is saying something like this: e -- result -- source -- [0] -- firstName (etc) How do I

[flexcoders] Re: Setting data from web service to ArrayCollection.

2009-01-27 Thread Amy
--- In flexcoders@yahoogroups.com, Wally Kolcz wko...@... wrote: I seem to be missing something. I tried the suggested way: public function loginHandler(e:ResultEvent):void { userData = e.result as ArrayCollection; var object:Object =

re: [flexcoders] Re: Setting data from web service to ArrayCollection.

2009-01-27 Thread Wally Kolcz
: Tuesday, January 27, 2009 10:42 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Setting data from web service to ArrayCollection. --- In flexcoders@yahoogroups.com, Wally Kolcz wko...@... wrote: I moved my CFC and database to my localhost so I can debug the webservice output

Re: [flexcoders] Re: Setting data from web service to ArrayCollection.

2009-01-27 Thread Wally Kolcz
Ok, lets take this the other way. Here is my simple CFC. How can I modify this to return a result to Flex to which I can then set to an ArrayCollection that I can use? cfcomponent cffunction name=login access=remote returntype=query output=false hint=I attempt a login cfargument

RE: [flexcoders] Re: Setting data from web service to ArrayCollection.

2009-01-27 Thread Tracy Spratt
Of Wally Kolcz Sent: Tuesday, January 27, 2009 3:39 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: Setting data from web service to ArrayCollection. Ok, lets take this the other way. Here is my simple CFC. How can I modify this to return a result to Flex to which I can then set

[flexcoders] Re: Setting data from web service to ArrayCollection.

2009-01-27 Thread valdhor
This tutorial will probably help: http://tutorial6.flexcf.com/ NB. I don't use coldfusion - I use PHP with WebORB. --- In flexcoders@yahoogroups.com, Wally Kolcz wko...@... wrote: Ok, lets take this the other way. Here is my simple CFC. How can I modify this to return a result to Flex to

[flexcoders] Re: Setting data from web service to ArrayCollection.

2009-01-27 Thread Amy
--- In flexcoders@yahoogroups.com, Wally Kolcz wko...@... wrote: Ok, lets take this the other way. Here is my simple CFC. How can I modify this to return a result to Flex to which I can then set to an ArrayCollection that I can use? cfcomponent cffunction name=login access=remote

RE: [flexcoders] Re: Setting data from web service to ArrayCollection.

2009-01-27 Thread Wally Kolcz
] On Behalf Of Wally Kolcz Sent: Tuesday, January 27, 2009 3:39 PM To:flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: Setting data from web service to ArrayCollection. Ok, lets take this the other way. Here is my simple CFC. How can I modify this to return a result to Flex to which I can

re: [flexcoders] Re: Setting data from web service to ArrayCollection.

2009-01-27 Thread Wally Kolcz
Don't understand the question. Please educate me :-) From: Amy amyblankens...@bellsouth.net Sent: Tuesday, January 27, 2009 3:20 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Setting data from web service to ArrayCollection