This topic is locked

how do you get values from Edit Page: Before Process?

1/22/2010 10:32:30 PM
PHPRunner General questions
R
roadyx author

I am trying to get the values of a read only field (acct_num) to store a variable on Edit Page: Before Process
I've tried all of this this for kicks and grins. No dice:
echo "<script>alert('oldvalues - ".$oldvalues["acct_num"]."')</script>";

echo "<script>alert('values - ".$values["acct_num"]."')</script>";

echo "<script>alert('session - ".$_SESSION["acct_num"]."')</script>";

echo "<script>alert('readonly - ".$readonlyfields["acct_num"]."')</script>";

echo "<script>alert('data - ".$data["acct_num"]."')</script>"
It's on a master-detail relationship where on edit all master fields are readonly and the detail fields are editable.
Thanks Much For Your Help!

J
Jane 1/25/2010

Hi,
there are no any arrays in the Before process event. You should select values from database manually based on the record ID: $_REQUEST["editid1"].

A
acpan 1/25/2010



Hi,
there are no any arrays in the Before process event. You should select values from database manually based on the record ID: $_REQUEST["editid1"].


Thanks Jane, I was looking for this answer a few days ago. It will be good to put this the Tips section.

acpan