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

A portal to create many to many relationships - please help!


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

Recommended Posts

Posted

I am building a database to record teams of people making visits to different places. In order to learn how to do this, I have a simplified database to start with that has only two tables on it for now.

I have - tblPerson containing records of individuals, and tblVisit containing records of visits to geographical areas.

A person may make many visits to different places, and a place may have visits from many different people. Thus a many to many relationship.

I have created a join table, tblPersonVisit, but I am now stuck.

What I want to do is to create a portal on the Visit layout where I can create relationships between the many people making that one visit, and a portal on the Person layout where I can create relationships between the places he visits and that person, so that the visits layout can show the associated people on that visit, and the people layout can show the associated visits for that person.

I can do one to many portals, where I can create records in the 'many' table via a portal on the 'one' table, but I am stuck on how to link existing records in the 'many' to the 'one' via a portal in a many to many relationship.

I have attached a simplified version of my dbase and if anyone can show me how to do this, I would be most grateful. I am at the 'beginner' stage, working my way through FileMaker Pro 10 'The Missing Manual'.

KB

Rooted_v1.8_Simplified.zip

Posted

Yipes! Thanks. That works brilliantly to add the person, and I will spend a little time working out how - its all in your script, but I haven't done variables yet. I understand variables in PHP, so have some point at which I can start.

What about the other direction - removing the relationship? I suppose it's a case of reversing the script somehow?

KB

This topic is 5589 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.