Re: Dynamic validation in AS

2013-09-18 Thread Oleg Konovalov
Oops, my mistake. It works just fine. Issue resolved. Thank you, guys!!! On Sep 18, 2013 10:23 AM, "Oleg Konovalov" wrote: > I still get the same exception from the same line if I do that. > Any other ideas? > On Sep 17, 2013 10:50 PM, "Justin Mclean" > wrote: > >> Hi, >> >> > validator.source =

Re: Dynamic validation in AS

2013-09-18 Thread Oleg Konovalov
I still get the same exception from the same line if I do that. Any other ideas? On Sep 17, 2013 10:50 PM, "Justin Mclean" wrote: > Hi, > > > validator.source = "{field}"; <<< Error: source attribute "{field}" > can > > not be of Type String [from mx.validators::Validator/set] > > validator.s

Re: Dynamic validation in AS

2013-09-17 Thread Justin Mclean
Hi, > validator.source = "{field}"; <<< Error: source attribute "{field}" can > not be of Type String [from mx.validators::Validator/set] validator.source = field;? Justin

Re: Dynamic validation in AS

2013-09-17 Thread Paul Hastings
On 9/18/2013 9:22 AM, Oleg Konovalov wrote: validator.source = "{field}"; <<< Error: source attribute "{field}" can shouldn't that just be validator.source=field;

Re: Dynamic validation in AS

2013-09-17 Thread Oleg Konovalov
OK, I tried the following: private function validateRequiredField(field:TextInput):void { var validator:StringValidator = new StringValidator(); validator.source = "{field}"; <<< Error: source attribute "{field}" can not be of Type String [from mx.validators::Validator/set] validator.property

Re: Dynamic validation in AS

2013-09-17 Thread Franck Wolff
Don't know if it could help, but you can check this: http://www.graniteds.org/public/docs/3.0.0/docs/reference/flex/en-US/html/graniteds.validation.html F. 2013/9/17 Oleg Konovalov > On Sep 16, 2013 7:36 PM, "Oleg Konovalov" wrote: > > > Hi, > > > > I need to validate dynamic form data in Fle

Re: Dynamic validation in AS

2013-09-17 Thread Oleg Konovalov
On Sep 16, 2013 7:36 PM, "Oleg Konovalov" wrote: > Hi, > > I need to validate dynamic form data in Flex 4.5 ADG, meaning that I don't > know column names, > order, but if the attribute is Required, than I have to make sure user > filled it in. > From all examples I have seen, validations is done