CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> PHP

 Need to validate before insert, update etc

Print topic Send  topic

Author Message
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
View profile  Send private message
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
View profile  Send private message
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.


View profile  Send private message
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
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Web Database

Join thousands of Web developers who build Web applications with minimal coding.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.