This topic is locked

Undefined variable: avalues

9/5/2007 5:54:40 AM
PHPRunner General questions
J
jwasielewski author

Hi,
I used the tip from Alexey for holiding the values after adding a record:
[codebox]QUOTE

$readavalues=false;

and change it to:
QUOTE

$readavalues=true;

[/codebox]
After doing that I got the error: Undefined variable: avaules when clicking on the Add-Link int the list view.
Have I to change any other value to make this work?

Thanks a lot for your help.
Janina

Alexey admin 9/5/2007

Janina,
there is a better way to do this.
Put this code into After record added event:

global $readavalues;

$readavalues=true;



and don't modify generated pages.

J
jwasielewski author 9/5/2007

Thanks a lot, that worked fine!