Hello all;
I'd like to get some suggestions on this from some of the more web-savvy members. I'm sure it's not a just PHPRunner specific issue.
I've got an inventory program with three main tables; part lookup, inventory and part history. The lookup table has all of the details common to all parts (part numbers, description, notes, etc. The inventory table has only a ref number (our primary key), serial number and revision code. The history table has all transient info for each individual part like stock location, current status, record date, etc. The tables are linked like this:
Part_Lu__Inventory____History
lu_id (pk)-------> lu_id (fk)
---------------------ref_no (pk)---------> ref_no (fk)
My problem is this. In the inventory pages all of the user-informative info for the part is tied to fields from the lookup (part # and description). Using the lookup works fine for the LIST page, but ADD is clumsy. The lookup table is nearly 8000 rows, and the same part may have up to three different part numbers. Right now I use the lu_id field as a drop down showing the main part number and then key the rest of the lookup fields to that. It works, but I'd like to be able to let the users enter parts through ANY of the fields (part number 1, 2 or 3, description, category, etc.) but I don't know how to trigger a change on any one of the controls and get the rest to update and sync up. I've also tried making all of the lookup fields a separate alias of lu_id, hoping that since they were all the same field they would update in unison, but of course it didn't work. To add or edit that way I needed to match every field to the same row:( Could a separate control (like an update button) be used to force everyone to sync to the last control that had focus or something similar?
I'm sure this is done all the time, but maybe would require too much custom coding to make it worthwhile for this project. Nonetheless, I'd sure appreciate insight on to how it might be achieved.
Thanks,
Ray