This content has been marked as final. Show 4 replies
Your code run..but you must remeber that events in flex are asyncronous.
If you want to populate the datagrid you must wait that you have received the response about server.
The assignment of the obj to datagrid mus be done after the response.
make something like this
rivate function resultHandler(event:ResultEvent):void
obj = event.result;
Thanks for the suggestion and gave it a try but it returns an error in the debugger?
1119: Access of possibly undefined property dataprovider through a reference with static type mx.rpc.http.mxml:HTTPService.
Managed to fix when I changed the resultFormat="e4x" to "object" instead that then populate the datagrid
you can use xml as resultFormat..