This topic is locked
[SOLVED]

 BeforeEdit($values,$where,$oldvalues,

5/10/2011 3:36:17 PM
PHPRunner General questions
N
nti author

in the phpr Html help file I found below example.
Event: BeforeEdit
Description
Function BeforeEdit is executed before a data record is updated in the database.
Syntax

BeforeEdit($values,$where,$oldvalues,$keys,$message,$inline)


My Current Code:

$values["MyField"] = encrypt($values["MyField"]);


How is this applied to my current code?
My most current effort which does not work:

BeforeEdit($values["MyField"] = encrypt($values["MyField"],$inline=False);


Encryption code breaks the data during inline editing unless all encrypted fields are included in edit.
I prefer to edit one field only and have the other fields NOT disturbed.
ALL FEEDBACK WELCOMED. thank you.

Sergey Kornilov admin 5/10/2011
if (!$inline)

$values["MyField"] = encrypt($values["MyField"]);
N
nti author 5/10/2011

Thank you Sergy for a great product and great support!
Your script works perfectly.