You are correct, the method should fire the next time that state is called. But it does not. It keeps the fileNum filled populated with the data from the first time I called the state.
--- In [email protected], "Matt Chotin" <[EMAIL PROTECTED]> wrote: > > I'm confused, you want to clear those inputs, but when you call the > service you want them filled again? The result handler will fire again > when the next result is returned and everything will fill in, right? > I'm not sure I understand what piece you're missing here. > > Matt > > -----Original Message----- > From: [email protected] [mailto:[EMAIL PROTECTED] On > Behalf Of Jeremy Rottman > Sent: Friday, March 03, 2006 8:16 AM > To: [email protected] > Subject: [flexcoders] Clearing Results > > In my app, I have a section called add sale. When this state is called I > use initialize to call a fucntion. This function queries my db and I use > another fucntion that populates a text input when the results are > returned. > > With the code below, how can I clear the results of the state. I have > several text inputs that I have set to no values, but I cant figure out > how to make it so that the next time I call the state, the text input is > populated again. I am assuming that I need to clear the results handler. > But I am not sure how to do that. > > Here are the snippets of code. > > Initializing the function: > > <mx:Canvas width="100%" height="100%" > initialize="SaleModqiAdminSaleStart()" > xmlns:mx="http://www.macromedia.com/2005/mxml" xmlns="*"> > > Webservice call: > <mx:WebService id="SaleMod" useProxy="false" > wsdl="http://flex.homesmartagent.com/cfc/adminHS2F.cfc?wsdl" > showBusyCursor="true"> > <mx:operation name="qiAdminSaleStart" > result="SaleModqiAdminSaleStartResult( SaleMod.qiAdminSaleStart.result > )" fault="SaleModqiAdminSaleStartFault( event )"/> > </mx:WebService> > > Function used to query my db: > > // used to call the service > function SaleModqiAdminSaleStart(){ > SaleMod.qiAdminSaleStart(); > } > > // called when results received > function SaleModqiAdminSaleStartResult( result ){ > fileNum.text = result; > } > > function SaleModqiAdminSaleStartFault ( event ){} > > > > > > > -- > 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 > -- 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/

