Ahh, I think I know why. In your result you called it srv.AgentDisplay….and shouldn’t it be result.AgentDisplay….

_________________________________________

Jonathan Miranda

Flexible Master of the Web

"In the game of chess, it's important to never let your opponent see your pieces."

HealthGrades: Guiding America to Better Healthcare™

NASDAQ: HGRD

w  (720) 963-3832

c  (707) 761-0868

[EMAIL PROTECTED]

_________________________________________

The message contains confidential and/or legally privileged information and is intended for use only by the indicated addressee.  If you are not the named addressee you should not disseminate, distribute, or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmissions cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed,arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission. If verification is required please request a hard-copy version.


From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Jeremy Rottman
Sent: Monday, February 27, 2006 2:09 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: DG display with xml and webservice

 

I know the click event is working properly. And I know the data being
returned from my webservice is returning correclty. I have have tested
teh cfc and verfied that it is returned the xml.

I am just not sure if I am connecting the webservice to the dg properly.

--- In flexcoders@yahoogroups.com, "Doug Lowder" <[EMAIL PROTECTED]> wrote:
>
> 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 flexcoders@yahoogroups.com, "Jeremy Rottman" <jarottman@>
> 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




SPONSORED LINKS
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS




Reply via email to