Tobias Ferdinand
|
Posted: 05/12/2004, 3:16 AM |
|
Hello,
I have a Dataset-form. if I use a special textfield or something like to
Validate the input, I can add an error. So if the error occurred, "After
Update" won't be executed. I think that's right.
But when I use the general form- On Validate and do the same for one
field, the error is shown on the next site, but "After Update" was executed.
So do you think this is a bug or a feature? ;)
So long, I'll try now, to only use the last textfield to validate all my
things and hope it'll work.
Please don't reply to my Mail-Adresse, it's not working in the Moment,
but it'll in a few days.
--
Mit freundlichen Grüßen
Tobias Ferdinand
tobias-ferdinand.net
Tel. +49 30 / 8 17 99 650
Fax +49 30 / 8 17 99 649
Mail newsATwapdog.de
Web http://www.tobias-ferdinand.net
|
|
|
Tobias Ferdinand
|
Posted: 05/12/2004, 4:46 AM |
|
Tobias Ferdinand wrote:
> Hello,
> I have a Dataset-form. if I use a special textfield or something like to
> Validate the input, I can add an error. So if the error occurred, "After
> Update" won't be executed. I think that's right.
>
> But when I use the general form- On Validate and do the same for one
> field, the error is shown on the next site, but "After Update" was
> executed.
>
> So do you think this is a bug or a feature? ;)
>
> So long, I'll try now, to only use the last textfield to validate all my
> things and hope it'll work.
>
OK, I think I found the error. Using the last textfield did'n work
first. Because I added the error to another textfield wich was above
this I used...
Now I added the error ($object->textfield->Errors->addError()) to the
textfield I just used and now it work's.
Seems like the errors of an element are counted directly after the
validation of an Element. And all errors added later aren't counted
anymore so "After Update" will be executed. I still think this is a bug!
For your info, I'm using Codecharge Studio 2.2.3.60, PHP with Templates
and perhaps not interesting, mysql 4.
Please don't reply to my Mail-Adresse, it's not working in the Moment,
but it'll in a few days.
--
Mit freundlichen Grüßen
Tobias Ferdinand
tobias-ferdinand.net
Tel. +49 30 / 8 17 99 650
Fax +49 30 / 8 17 99 649
Mail newsATwapdog.de
Web http://www.tobias-ferdinand.net
|
|
|
|