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

 Cancel update

Print topic Send  topic

Author Message
paulW

Posts: 24
Posted: 07/27/2009, 1:22 PM

I have an Editable grid that I need to do a unique validation on...

When the form is submitted, i need it to compare the old and new values of changed elements.

I can do this, but right now I am doing the comparison in BeforeBuildUpdate, and the comparison works fine.

however, i can't seem to cancel the update if the comparison reveals an illegal change.

i have tried
header("Location: " . $Redirect);
but that does not seem to prevent the update.

I don't know if putting the code in OnValidate would make it work better.

Any ideas?

PS. I don't want to do this client-side...
View profile  Send private message
jjrjr1


Posts: 942
Posted: 07/27/2009, 2:02 PM

After you set the header location. do an exit();


_________________
John Real - More CodeCharge Studio Support at - http://CCSElite.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.