I'm coming from Flex 2 environment where it seemed easy to create an array collection from the data returned from my webservice using ArrayCollection and ArrayUtil.
I've since switched over to flash builder 4 and am using the data services wizard to retrieve my data. My problem is once i can retrieve my data, how can i access and manipulate it (besides dragging it into a datagrid etc).
For example, i'd like to get the record count of items returned (ie - 32 items found). When using an Array Collection & flex 2 i was able to simply access the ac.length parameter.
Another example would be if i needed to access a specific item in the data (ie - username). I previously (flex 2) was able to use something like ac.getItemAt(0).USERNAME
Is the data returned from the webservice already in some type of array? Can anybody shed some light for me? I would appreicate any help.
Have a resultHandler and in that resultHandler
assign the returned to a ArrayCollection variable,
assign your datagrid's dataprovider to the ArrayCollection
data comes back as generic objects