matheus
Posts: 386
|
| Posted: 09/14/2006, 12:34 PM |
|
Okay, I have a FileUpload component. It's required.
In the same record, I have a Textbox, required too.
The problem is:
If I fill FileUpload and not fill Textbox the record give error because the Textbox, but the FileUpload process (upload) the file.
I need stop file processing if record had errors.
I try add Error in FileUpload, in Record, setValue null to FileUpload, he will always process the file.
Someone can help?
_________________
Matheus Trevizan
Dynamix Software Ltda.
Blumenau SC Brasil
www.dynamix.com.br |
 |
 |
matheus
Posts: 386
|
| Posted: 09/15/2006, 11:00 AM |
|
Resolved.
In onValidate of Control FileUpload verify if hadErrors at Record.
If had, use method delete() of FileUpload.
It will delete file from temporary folder.
_________________
Matheus Trevizan
Dynamix Software Ltda.
Blumenau SC Brasil
www.dynamix.com.br |
 |
 |
|