I am using PHPRunner 3.1 (build 218) and have a drop down dependent question. I have 3 tables Equipment, City, and Building. My table relationships are as follows:
Building relates to Equipment since the equipment can only reside in one building, but many pieces of equipment are in one building.
City relates to Building since that building can only be in one city, but there may be multiple buildings in a city.
So I have all my pages all set up except for some of the adds and edits. When I do an add into the equipment table I can only do a lookup from the Building table since that is where the direct relationship lies. The problem with this is I get every building in the table when I do a lookup. So the solution would be to first select the city and then the building depending on the city selected. The problem with this is that there is not a direct relationship between the city and equipment tables. I can put a lookup of the city table in the equipment add page. Then when I do the building lookup, the direct dependent option will not relate to a field that is not resident in the equipment database.
One option I am thinking but need help with, it to put the city lookup on th epage. Then when the building lookup is done, put the results from the city lookup in the "WHERE" portion of the building lookup. Problem I am having is with the syntax.
If anyone has an idea how to help, I would greatly appreciate it.