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

Relating Records to Each Other in a Portal


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

Recommended Posts

Posted

FM 7, OSX Tiger

Hi Helpers!

I have a database that includes "Companies". Many of these are independent but some are related to each other as either a "Main Office" or a "Branch" location.

I'd like to have a portal in each Company record that shows the Branches and Main Office with the Main Office highlighted or sorted at top. If the Company is independent, the portal can disappear (extra credit). Call this group a "Region."

Can someone please put me on the right track? Ideally it is a solution that allows for easy data entry of the "Regions"

Thanks in Advance.

Posted

Here's something like. I'm not showing the Main one in a portal, as there's only 1 per. The portal has a same-colored background.

The "PrimaryFlag" and the "ParentCompanyID" are both auto-enter, with Replace, so they can clear the other. It seems to work, in my limited testing.

You could go a bit further, and filter out the current CompanyID from the primary companies drop-down. That makes sense, but would further complicate the solution, so I left it out.

CompanyBranches.fp7.zip

Posted

Thanks for the very clean and simple solution. You make it look so easy.

I'd like to also be able to see the "Sister" branches in the portal of a Company. I know that I could click to the parent and then see the Sisters but it would be easier if they were right there. Any suggestions?

Thanks again!

Posted

Well, it's not hard to do. But we're taking up a fair amount of space with these portals. An alternative, which I neglected, was to put another button to go back to the main company, where you can see the sisters. The attached file has both.

Another thing you may not have notices is that the label for the portal is inside another instance of the same portal; so no label if no portal records. Cheap trick :D-]

CompanyBranches.zip

Posted

Hi Fenton,

Thanks for your solution. Sorry I was a little unclear. I'm trying to get the branches and parent into one portal that has them both. I suppose that requires quite a different solution?

When I have my one portal, I'll highlight the one that is the parent--I know how that's done.

Cheers,

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