CodeCharge Studio
search Register Login  

Visual Web Reporting

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

YesSoftware Forums -> Archive -> GotoCode Archive

 Help with some Code

Print topic Send  topic

Author Message
Omar
Posted: 02/27/2002, 12:28 PM

I have a form that updates statuses, if the value of current staus Less than the new status, then I am ok.
the question is if i the user is tying to update record with a status with a value Less than the current status I wnat the higher value status to apply.
simply put current shipment status = deleivered (Value= 80), and
new shipment status = Cargo_Delayed (value=50)
I want the higher value to remain in the record, and let the user know that status in invalid
Alex Alexapolsky
Posted: 02/28/2002, 1:50 AM

This is where you should use Validation event.
Field variable are avail via fld prefix , e.g. fldstatus.
If you detect validation error , then assign error text to s[FormName]Err
variable , CC will check this variable and won't update form as this var is not
empty.
Omar
Posted: 02/28/2002, 7:27 AM

Ok! But how do I get the last value of the record that was updated, is it something like max(somthing), and if it is can you please jot down the statements, or the syntax.

   


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.