Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Relating Records to Each Other in a Portal

Featured Replies

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.

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

  • Author

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!

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

  • Author

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,

That's simpler in a way. But you have to create a calculation field with both the 2 IDs in a multi-line; so that it can match either. Looks like:

CompanyID &

CompanyBranches2.zip

Create an account or sign in to comment

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.