You need to know first the index and the field name. If the array
collection looked something like;
public var test:ArrayCollection = new ArrayCollection
([{one: "1,1", two: "1,2", three: "1,3"},
{one: "2,1", two: "2,2", three: "2,3"}]);
to extract 2,2 you would need
test.getItemAt(2).two
if you only specify test.getItemAt(2) you will end up with [object
object] as text as it is returning the entire row.
--- In [email protected], "Joe" <[EMAIL PROTECTED]> wrote:
>
> What is the easiest way to exstract a single value from an array
> collection that is a reslut from remote object calling a cfc.
>
>
> [Bindable]
> public var empSelected:Number;
>
> public function getempProfile():void{
>
> cfService.empName({emp:empSelected});
>
> }
>
> [Bindable]
>
> private var empData:ArrayCollection;
>
> private function dataHandler(event:ResultEvent):void{
> empData = event.result as ArrayCollection;
> }
>
>
> <mx:RemoteObject id="cfService"
> destination="ColdFusion"
> source="cfc.names"
> result="dataHandler(event)"
> />
>
>
>
> <mx:Label text="{empData.getItemAt(????????)}">
>
> </mx:Label>
>
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)
<*> To change settings via email:
mailto:[EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/