CodeCharge Studio
search Register Login  

Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> Archive -> GotoCode Archive

 Was $sFormErr in CC2.05

Print topic Send  topic

Author Message
Karen
Posted: 04/09/2003, 3:01 AM

It's just a simple question but I don't know how to do it. What's the syntax for before insert event error message? From the help, I have a clue to use object.Errors.AddError but don't know the exact syntax. I'm using PHP. Can somebody pls help? Thanx.
Karen
Posted: 04/09/2003, 5:21 PM

Ok, I found out the syntax for Errors.addError and I have this in the custom code of the form Before Insert event after testing for a condition.

$products->Errors->addError("Rank already exists!");


I get the error message displayed but strangely, the record is still inserted. Do I have to do something else other than setting the error message only? Pls help. Thanx.

   


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

PHP Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


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