CodeCharge Studio
search Register Login  

Web Reports

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

YesSoftware Forums -> Archive -> GotoCode Archive

 count and validate entrys

Print topic Send  topic

Author Message
John Garner
Posted: 06/10/2003, 6:21 AM

hi all, i'm quite new to codecharge studio and any help would be appreciated.

I would like to be able to retreive a count on a fixed number of fields (lets say 6) where the value is not null, and then when the add button is clicked compare the result with another field that holds a value.
If the value is not the same as the first then prevent the form being submitted and display a error message.

thanks in advance

John
Karen
Posted: 06/10/2003, 8:23 AM

Code the condition in the OnValidate event of the form. Goes something like this (PHP):

if (condition)
$form->Errors->addError("Your error message to prevent submit");

Hope that helps!

   


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

MS Access to Web

Convert MS Access to Web.
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.