Re: [flexcoders] Re: Refresh a Form / Views

2008-09-20 Thread Eugene Louw
Hi,
Thank you that seemed to have done the trick for that, just need to turn of
the validation now when that happens,

Thanks

On Fri, Sep 19, 2008 at 4:39 PM, Tim Hoff [EMAIL PROTECTED] wrote:

   Hi Eugene,

 In the state tag, you can set properties.  This will happen when you change
 to the state:  Something like this:

 mx:states
 mx:State name=myFormState
 mx:SetProperty target={myFirstFormField} name=text value=/
 mx:SetProperty target={mySecondFormField} name=text value=
 /
 /mx:State
 /mx:states

 -TH


 --- In flexcoders@yahoogroups.com, Eugene Louw [EMAIL PROTECTED] wrote:
 
  Hi,
 
  What is the best way to reset a form in flex. The problem I'm having is
  going from one state to the other and returning to the state and the form
 is
  still the same. This is exactly what I expect it to do,
  but in this case I want the form to be reset every time you come back to
 the
  state with the form inside it?
 
  Kind Regards,
 
  --
  
  Eugene Louw
  
 

  




-- 

Eugene Louw



Re: [flexcoders] Re: Refresh a Form / Views

2008-09-20 Thread Eugene Louw
Got the answer for this by searching the group,
errorString = '' is the trick

Thanks for the help

On Sat, Sep 20, 2008 at 9:06 PM, Eugene Louw [EMAIL PROTECTED] wrote:

 Hi,
 Thank you that seemed to have done the trick for that, just need to turn of
 the validation now when that happens,

 Thanks


 On Fri, Sep 19, 2008 at 4:39 PM, Tim Hoff [EMAIL PROTECTED] wrote:

   Hi Eugene,

 In the state tag, you can set properties.  This will happen when you
 change to the state:  Something like this:

 mx:states
 mx:State name=myFormState
 mx:SetProperty target={myFirstFormField} name=text value=
 /
 mx:SetProperty target={mySecondFormField} name=text value=
 /
 /mx:State
 /mx:states

 -TH


 --- In flexcoders@yahoogroups.com, Eugene Louw [EMAIL PROTECTED] wrote:
 
  Hi,
 
  What is the best way to reset a form in flex. The problem I'm having is
  going from one state to the other and returning to the state and the
 form is
  still the same. This is exactly what I expect it to do,
  but in this case I want the form to be reset every time you come back to
 the
  state with the form inside it?
 
  Kind Regards,
 
  --
  
  Eugene Louw
  
 

  




 --
 
 Eugene Louw
 




-- 

Eugene Louw



[flexcoders] Re: Refresh a Form / Views

2008-09-19 Thread Tim Hoff

Hi Eugene,

In the state tag, you can set properties.  This will happen when you
change to the state:  Something like this:

mx:states
 mx:State name=myFormState
 mx:SetProperty target={myFirstFormField} name=text
value=/
 mx:SetProperty target={mySecondFormField} name=text
value=/
 /mx:State
/mx:states

-TH

--- In flexcoders@yahoogroups.com, Eugene Louw [EMAIL PROTECTED]
wrote:

 Hi,

 What is the best way to reset a form in flex. The problem I'm having
is
 going from one state to the other and returning to the state and the
form is
 still the same. This is exactly what I expect it to do,
 but in this case I want the form to be reset every time you come back
to the
 state with the form inside it?

 Kind Regards,

 --
 
 Eugene Louw