Hi all,
Just wondering whether anyone had any experience of customising the AJAX combo to only list FK items that didn't already exist in the current table.
Scenario
I have a table
productfinishes that stores
2 Foreign Keys -
product & finish. When the user selects the
product, I want the
finish field to display
all available finishes (from finishes table) that don't currently exist in
productfnishes WHERE product = the user selected product.
To clarify this, products can have multiple finishes and finishes can belong to many products but the combination of product + finish must be unique. I will be handling this at DB level using a UNIQUE index on (product, finish) as per post here:
www.j-cook.pro/forum/12-new-functionalit...k-combination-unique
However, I want to make the input stage dummy-proof to prevent the user from being able to enter incorrect combinations in the first place.
Any help on modifications to achieve this would be most welcomed!
Many thanks!
Gez