This content has been marked as final. Show 5 replies
The fact that you dataGrid populates tells me that the result object actually contains an array.
public var DG_Provider:ArrayCollection;
and in the handler:
DG_Provider= new ArrayCollection(event.result);
You can access the underlying array using the ArrayCollection.source property.
One problem is that you will have an array of objects. I do not know how the web service will handle that. What kind of array does it want?
I treid that - but I got the following error:
1118: Implicit coercion of a values with a static type Object to a possibly unrealated type array.
I dont know if I am being stupid and doing something silly wrong ???
Ahh, data types are the hardest thing in AS3.
Maybe it should be something like:
DG_Provider= new ArrayCollection(event.result.myDataNodes);
no - still no joy with that either :(
what do you mean by the "myDataNades" ?
Your complete answer is located here http://www.adobe.com/devnet/flex/articles/flex2_rails.html
it is by Derek Wischusen at Adobe.
I had the same problem with one of my clients and this forum supplied me with links to all the software i needed. I realized that sometimes you have to abandon your traditional app deveopment languages and master the ones that let Flex perform immaculately. I got tired of scrubbing around and getting so many different methods on how to do this. Flex and Rails is your answer.