Check out the Validator.disable and Validator.enable functions.  These are meant to turn off a validator while you’re resetting the source fields, when you re-enable they’ll be ready to go.

 

Matt

 


From: [email protected] [mailto:[email protected]] On Behalf Of chris.alvarado
Sent: Tuesday, July 12, 2005 2:29 PM
To: [email protected]
Subject: [flexcoders] Validators

 

good afternoon everyone,

i have what seems like a simple problem with the validators class but
cannot seem to figure out what is wrong.

i have a set of inputs (text, combobos, etc) that dumps data into a
datagrid. these fields are part of a model that i then validate using
the isStructureValid() method which works just fine. however when im
done adding the items to datagrid i want to reset the input fields, so
i do this as you would expect (manually) by simply setting the
coresponding properties (somefield.text ="") etc.

however this seems to keep the validators instantiated on the fields
as it will then show the little red outline as if it is expecting data
when im not even wanting to validate the model at that time.

does the validator need to be reset somehow?

any suggestions would be greatly appreciated.

--
-chris.alvarado
[application developer]


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com





--
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




Reply via email to