This topic is locked
[SOLVED]

 BeforeEdit event

11/29/2012 5:41:40 PM
PHPRunner General questions
K
krot author

i have the following event on BeforeEdit page:
if(($values["dob"]!= $oldvalues["dob"]) or ($values["gender"]!= $oldvalues["gender"]))

{

$values["product"] = "" ;

}
the problem is that values in product field are erased even if I don't change dob or gender values.
I think it has something to do with dob field (date field).

Sergey Kornilov admin 11/29/2012

Your code looks correct.
If you have a valid support contract post your application to Demo Account and open a ticket at http://support.xlinesoft.com sending your Demo Account URL. 'Demo Account' button can be found on the last screen in the program.

K
krot author 11/29/2012

Problem solved.
The dob field in database was DATETIME type. I changed it to DATE type and it works. >

Your code looks correct.
If you have a valid support contract post your application to Demo Account and open a ticket at http://support.xlinesoft.com sending your Demo Account URL. 'Demo Account' button can be found on the last screen in the program.