andrewi
Posts: 162
|
| Posted: 04/18/2005, 7:00 AM |
|
Does the On Validate event fire once for each separate row being submitted?
Can I refer to the values of controils in On Validate by using
EditableGridName.ControlName.Value ?
Thanks
|
 |
 |
dhodgdon
Posts: 80
|
| Posted: 04/18/2005, 8:03 AM |
|
This event occurs at the time the form is submitted to the server and after standard validation operations have been performed as a result of submitting values, but before any database operations have been performed with the submitted values. While you can assign code to On Validation events to both individual controls and the entire grid, I prefer to use the grid event because it keeps all my validation code together. All control values are available and most server actions can be accessed including the sending of email. The difference between the On Validate events for grid versus control is:
Grid:
Occurs when performing page component’s validation procedure, after standard validation rules are checked.
Control:
Occurs after handling submitted data and before loading templates for page showing.
You need to be careful what you do during the On Validate event because it happens each time you send the form to the server via an action button (add, submit, etc.). For example, if there is an error reported and you perform an action at that time, the action will be repeated if another error occurs when the user resubmits the form.
If you need to perform an action when each control on the grid is changed you need to use the On Change event. Keep in mind that the On Change event is a client side event while the On Validate is a server side event.
Check out the “On Validate Event” topic in CCS Help for more detailed information. For information on all validation capabilities in CCS do a search on the word validate in CCS Help.
Hope this helps.
_________________
Regards,
David Hodgdon
|
 |
 |
Oper
Posts: 1195
|
| Posted: 04/18/2005, 8:07 AM |
|
fire once for each row.
10 Row, 10 Onvalidate
but use:
EditableGridName.Datasource.ControlName.Value
_________________
____________________________
http://www.7bz.com (Free CMS,CRM Developed in CCS)
http://www.PremiumWebTemplate.com
Affiliation Web Site Templates
Please do backup first |
 |
 |
|