This topic is locked

passing field value from Mastertable to detailstable custom field

2/15/2014 8:13:43 AM
PHPRunner General questions
Y
YCH author

You have a VIEW page with mastertable and detailstable fields showing.
Detailstable_list.php page has also a custom <input > text field.

I would like to prefill the <input > field on the detailstable with a mastertable fieldvalue (address) on the onload event of the mastertable_view.php page .
I have already this working code to retrieve the address field value from the mastertable :

(in the BeforeDisplay event of the mastertable):

global $data;

$_SESSION["address"]=$data["address"];

$pageObject->setProxyValue("tmpaddress", $_SESSION["address"]);
How can I pass it on to the <input > field in the detailstable_list.php page showing in the mastertable_VIEW.php page ?
Any advice?
Yves