This topic is locked

Add New record

2/17/2010 8:50:23 PM
PHPRunner General questions
M
mid3vil author

So i have a table called site_pm, with the following fields:

pm_id, site_id, date_pm_completed, etc.

pm_id is an auto incremented key.

site_id is an int value with a lookup/dropdown on the add page (it displays a field "Site" in the table "site_tower", where site_tower's site_id matches table site_pm's site_id), and date_pm_completed is =now(), then there are other text/varchar type fields.
When a site is selected on the site_pm add page, i want to beable to auto fill the values on the add page equal to the most recent/previous date_pm_completed value. Any ideas?

J
Jane 2/19/2010

Hi,
unfortunately there is no easy way to fill date field with value from another table.
As workaround you can set up these fields as dependent dropdown boxes:

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