This topic is locked

ERROR UNDEFINED VARIABLE: VALUES

7/15/2008 7:56:34 PM
PHPRunner General questions
A
Aleix author

Hello;
I tried to do Calculate Fields with this code:
CASE 1

$values["Field1"] = $values["Field2"]$values["Fied3"]/100;
All the Field´s are in the same Table
When I add a new record, in the store step I have the:
Tipo Error: 8

ERROR UNDEFINED VARIABLE: VALUES
Which is my mistake?
_____
CASE 2
Field1 and Field2 are in the Table_1

Field3 is in Table_2
$values["Table_1.Field1"] = $values["Table_1.Field2"]
$values["Table_2.Fied3"]/100;
Is it ok?
Many Thanks!

J
Jane 7/16/2008

Use this code in the Before record added/Before record updated events on the Events tab.