This topic is locked

Copy Function

5/28/2009 1:41:09 PM
PHPRunner General questions
G
garivera author

Can anyone please share the code to place in events that will prevent specific fields not to carry over the old data when using the copy function.
In PHP Runner 4.2, I used in events AddOnLoad
global $smarty;

$smarty->assign("value_FieldName","");
Obviously, in PHP Runner 5.0, AddOnLoad is gone, so I have tried to place it in before display and before process, but no go. I also tried Copy Page: OnLoad, again no go.
This is the modified code I tried to use of version 5.0

global $xt;

$xt->assign("FieldName_value","");
G

J
Jane 5/29/2009

Hi,
try to use this code in the Add page: Before display event:

$xt->assign("value_FieldName","");

G
garivera author 5/29/2009

Hi,

try to use this code in the Add page: Before display event:


It does not work. Any other suggestions?
G

Sergey Kornilov admin 5/29/2009

I recommend to post your application to Demo Account (use 'Demo Account' button on the last screen in program). Then open a ticket at http://support.xlinesoft.com sending your Demo Account URL for investigation.