This topic is locked

get value of master page textbox from detail page

8/3/2023 10:27:54 AM
PHPRunner General questions
M
mfonseca author

Hello all,
I've the following page with a Master table and two detail tables
img alt
In the detail page, I need to get the value of the indicated OS textbox
I need the value in the "Client Before or Server" code events
If the record is saved I can get the value using
$record = $ajax->getMasterRecord();
$varOS = $record["OS"];
But in a new record (before saving), the above code returns null.
I've tried using Runner.getControl(pageid, 'OS') in the detail page, but that doesn't seem to access the Master detail controls.
Any suggestions?
Thanks

Admin 8/3/2023

Check this article:
[https://xlinesoft.com/phprunner/docs/getmasterpage().htm](https://xlinesoft.com/phprunner/docs/getmasterpage().htm)
Get a hold of the master page first, then read the value of the control.