Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×
The Claris Museum: The Vault of FileMaker Antiquities at Claris Engage 2025! ×

A limiting many to many relationship


This topic is 4934 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

Ok, I am probably making this harder than it needs to be, but here goes..

I need to set up a relationship where a user (dealer) can pick a car with a unique serial number and assign one of 4 colors to it.

There can only be one car with that serial number of each color. (So if there are 2 cars there are 8 possible combinations. Car1 in Blue, red, green, black and car2 in blue, red green, and black)

If that unique car has no colors left, it should not be available to pick from the start.

Once selecting a car, only those colors not used would appear in the drop down.

Sounds simple..right?

Posted

What tables do you have in your solution?

This isn't all that simple. Have you made any progress? I'll try to find the time for a demo, meanwhile try a search on "dwindling value list."

Posted

Yes, I have gotten it to work in a very clunky way. Basically had to create a join table that when a new car was entered it spawned a record for each possible color type in a Join table so that the color table could write its ID to that particular record. this allowed me to create a relationship that would show all records where Color:Car_id = Joined:Car_id:=Car_id and Color:Color_id <> Joined:Color_id. With a drop down list displaying the Joined:Color_Type field. It works but don't like creating the extra records. Will try to upload a sample in next couple of days.

Tables:

Invoice

Cars

Colors

Joined

Posted

You will need the join table, but you do not need to create the record "placeholders" for each car/color combination ahead of time. Simply put a portal to the join table on the car entry form.

This topic is 4934 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.