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

 How to check for error messages in a editable grid ?

Print topic Send  topic

Author Message
Torben Søemod
Posted: 12/10/2004, 6:42 PM

I would like to know in a "beforeshow" if there is any error messages in a editable grid. By errors i mean errors like "minimum value", "Max length" etc.
Last Hero
Posted: 12/11/2004, 3:08 PM

try this:
  
global $formname;  
$haveerror = false;  
foreach ($formname->RowsErrors as $error) {  
  if($error->count()) {  
    $haveerror = true;  
     break;  
  }  
}   
$haveerror |= $formname->Errors->count() > 0;  

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.

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


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