Nested lookups
-
I have three tables: Locations, Products and Companies. For the sake of simplicity, each one has an ID and a name column, and Products also has a a column called company_ID. Locations and Products has a many-to-many relationship (via a join table that also includes Amount) and Companies and Products has a one-to-many relationship.
The idea of the database is that the user per Location can add many different Products that are being manufactured by Companies.
But, I’ve run into a problem concerning the form builder and lookups. It would be very handy if when a user wants to add a product to a location, also the company name can be seen. If I add a lookup for the Product.ID in the form builder, I can’t access the name of the company, only Product.company_ID and this is not very readable.
I would like a kind of ‘nested’ lookup possibility; a lookup inside another lookup. Or, another way of structuring the database that would make this possible.
Thank you for a great plugin!
- You must be logged in to reply to this topic.