This topic is locked
[SOLVED]

 Autofill doesn't trigger from master-child view

11/17/2013 1:57:40 PM
PHPRunner General questions
S
Stucco author

Hi,
I have a master / child relationship set up, Vendors (Master) and Products (Child). The user can view the list of Vendors, and then click on the Products by Vendor. From here, they can add a new Product. The Vendor field in the add form is read only if entering from here. If entering the add Product from somewhere else, they can pick the Vendor from a lookup.
The problem is that I have configured AutoFill on the Vendor selection for another field in the Product add form. When it is pre-selected then the AutoFill action does not occur.
I would fix it myself in the Events -> Add Page -> Process Record Values, but I do not have a database connection there, which is required for the value to be obtained.
Thanks!

Sergey Kornilov admin 11/18/2013

While I do not understand the whole question I can help with " I do not have a database connection there, which is required for the value to be obtained" part.
Database connection is available in all events. See this code sample for instance:

http://xlinesoft.com/phprunner/docs/update_multiple_tables.htm