thingy
Posts: 8
|
Posted: 07/26/2004, 9:08 AM |
|
I need to validate before insert and before update.
I add errors where they exist, but the insert still happens. How do I stop the insert/update from beforre insert or before update?
Thx
Thingy
|
|
|
peterr
Posts: 5971
|
Posted: 07/26/2004, 11:10 AM |
|
The On Validate event should be used for this. See the examples at http://docs.codecharge.com/studio/html/ProgrammingTechn...Validation.html
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com |
|
|
thingy
Posts: 8
|
Posted: 07/27/2004, 1:47 AM |
|
Thx Peter
I used the formstate and do different validation dependant on add or edit.
|
|
|
peterr
Posts: 5971
|
Posted: 07/27/2004, 1:57 AM |
|
I don't recall now if formstate cannot be used in On validate, but eventually you could stop the insert or update execution via CmdExecution. Please refer to http://forums.codecharge.com/posts.php?post_id=48349
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com |
|
|
|
|
|
|
|