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 |
|
|
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 |
|
|
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 |
|
|
|