CodeCharge Studio
search Register Login  

Web Reports

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

YesSoftware Forums -> CodeCharge Studio -> PHP

 Custom error problem

Print topic Send  topic

Author Message
szenczi

Posts: 67
Posted: 02/07/2013, 8:24 AM

Hi,

I have a record form with a custom error.
This code is works well, the error message is shown, but the datadase function is performing unfortunately. I tried it in different events, but no difference.

Norbert
_________________
CCS5.1, PhP, MySQL
View profile  Send private message
DataDoIT
Posted: 02/07/2013, 8:27 AM

Define "different events". The devil's in the details.


szenczi

Posts: 67
Posted: 02/07/2013, 8:31 AM

OnValidate,
BeforeUpdate,
BeforeBuildIpdate,
BeforeExecuteUpdate
_________________
CCS5.1, PhP, MySQL
View profile  Send private message
DataDoIT
Posted: 02/07/2013, 9:40 AM

Great. Now show us your code.
szenczi

Posts: 67
Posted: 02/07/2013, 10:33 AM

$tanazon = CCDLookUp("tanazon","cegtanfolyam","tfolyazon=".$DBmvdb->ToSQL($tanfolyam,ccsInteger),$DBmvdb);

if ( $cegtandij1->jogviszony->GetValue() == 3 && $cegtandij1->fizetve->GetValue() == 1){
if (strlen(trim($cegtandij1->szallitoszlasrsz->GetText())) <= 7)
$cegtandij1->Errors->addError($CCSLocales->GetText("szallitoszla_error"));
if (strlen(trim($cegtandij1->vevoszlasrsz->GetText())) <= 7)
$cegtandij1->Errors->addError($CCSLocales->GetText("vevoszla_error"));
}

_________________
CCS5.1, PhP, MySQL
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.

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.