Is this: <mx:Model id="results" source="userlist"/>
Supposed to bind the userList varible to that model? If so, the source value needs to be enclosed in binding braces, and to be spelled correctly. If not, I do not understand what you are doing. Tracy ________________________________ From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of deepa_golamudi Sent: Thursday, December 07, 2006 4:26 AM To: [email protected] Subject: [flexcoders] unable to parse XML data Hi everybody.. i am new to flex environment i need a small help regarding formatting the data i am trying to access database using remote object and get the values in the database i have an returned arraylist from my java program and flex component is able to get the arraylist. when i am trying to set the returned arraylist to my chart iam getting an error saying uable to parse data pl help me if possible here is my mxml file <?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml <http://www.macromedia.com/2003/mxml> " creationComplete="initApp()"> <mx:Script> <![CDATA[ var userList:Array[]=0; function initApp() { //log(); // alert(userList.length); //alert(userList);//alert("Hello World!!"); } function log() { users.getValid(userid.text); //users.getValid(userid.text); } ]]> </mx:Script> <!-- remote object--> <mx:RemoteObject id="users" source="report" result="userList=event.result" fault="alert (event.fault.faultstring, 'Error')" > <mx:method name="getValid"></mx:method> </mx:RemoteObject> <mx:Model id="reporter"> <name>{userid.text}</name> </mx:Model> <mx:Canvas id="canvas" width="730" height="696" vScrollPolicy="off"> <mx:Button label="get Progress" width="148" textAlign="center" x="274" y="126" click="log (),mx.validators.Validator.isStructureValid(this,'reporter');"/> <mx:DataGrid id="datagrid1" x="66" y="207" width="600" dataProvider="{userList}"> <mx:columns> <mx:Array> <mx:DataGridColumn headerText="score" columnName="score" /> </mx:Array> </mx:columns> </mx:DataGrid> <mx:TextInput x="348" id="userid" y="88" width="95" height="18" /> <mx:Label x="249" y="88" text="Enter User-Id" /> <mx:Model id="results" source="userlist"/> <mx:Array> <mx:ColumnChart width="100%" height="100%" showDataTips="true"> <mx:horizontalAxis> <mx:Array> <mx:CategoryAxis dataProvider="{results.userlist}" categoryField="score"/> </mx:Array> </mx:horizontalAxis> <mx:series> <mx:Array> <mx:ColumnSeries yField="examid"/> </mx:Array> </mx:series> </mx:ColumnChart> </mx:Array> </mx:Canvas> </mx:Application> Deepa

