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

 If (no data) then (show errormessage)

Print topic Send  topic

Author Message
Rob
Posted: 02/01/2005, 5:04 AM

How can I do this:
I want to show a record with a listbox, but when the listbox is empty I want to show a special message (no data available).

Something like this in a before show field:

if ($fldlistboxitems == "") {
??what here??
}

I uses CC
Nicole

Posts: 586
Posted: 02/02/2005, 2:43 AM

Rob,
In CC open Validate event of a form and add error to $sFormNameError variable (of course you need to use real form name). E.g. for the form “Results” use:
  
If($fldlistboxitems == "")  
$sResultsErr = "custom error message";  

_________________
Regards,
Nicole
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.

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.