Have you verified that the click event is actually being processed by your datagrid? If not, try using a trace or Alert.show for the click handler, or try changing the click event to something like creationComplete. If you find the problem is not the click event, then it's likely there is an issue with the data returned by your web service.
Hope that helps, Doug --- In [email protected], "Jeremy Rottman" <[EMAIL PROTECTED]> wrote: > > I am using a webservice to call a function from my cfc that returns > data as xml. When the data results are received, I convert the results > into an array named agents. I am trying to populate my dg with the > array. When I click on the dg I am calling the function > agentDisplayQry. Which calls the function in my cfc. However, I cant > get this to work. Can someone help me with this. > > Here is what I am trying. > > <mx:Script> > > import mx.collections.ArrayCollection; > [Bindable] > public var agents:ArrayCollection; > > </mx:Script> > > <mx:WebService id="srv" > useProxy="false" > wsdl="http://flex.homesmartagent.com/cfc/adminHS2F.cfc?wsdl" > result="agents = new > ArrayCollection(srv.agentDisplayQry.result.list.employee)" > showBusyCursor="true" /> > > Then I am using this dg to display the information. > <mx:DataGrid x="18" y="291" width="695" > click="agentDisplayQry(fileNum.text)" dataProvider="{agents}" > height="192" id="datagrid1"> <mx:columns> > <mx:DataGridColumn headerText="Agent Name" width="275" > columnName="agentName"/> > <mx:DataGridColumn headerText="Transaction Side" width="150" > columnName="agentSide"/> > <mx:DataGridColumn editable="true" headerText="% of Side" > width="95" columnName="col3"/> <mx:DataGridColumn > headerText="Type" width="175" columnName="agentType"/> > </mx:columns> > </mx:DataGrid> > -- 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/ <*> 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/

