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.

relationships using calculated fields

Featured Replies

I have a master file (MAccts) with an owner field with 3 values, an Accounts (Accounts) file containing user accounts. Among others, the Accts file has the MAcctNum, AcctNum, Owner field and a Type field. One relationship is based on a master account number (MAcctNum) present in both DBs. When I display a portal on a layout in the MAccts file, all the related accounts to the MAcct show up fine.

Now, I want to display subsets of the accounts, based on the category of the account and its owner, on a single layout. I am putting multiple portals on the layout in MAccts and trying to set up separate relationships between MAccts calculated fields and Accounts based on calculated fields that aggregate the <MAcctNum> + <Owner> + <Type> into a separate calculated field in Accounts. These are realted to similar field values created in MAccts. I'm using text type fields for the results, they are indexed, and I'm getting the expected results to the calculations. However, the results displayed in my portals are not working, I get the same output to the portal (repeating the same account in multiple lines) and it doesn't correspond to the filtering of the relationship designated for that portal. I've even changed relationships from one to another and still gotten the same info displayed in the portal.

I've even gone to hard entering match data in text fields, avoiding the calculation all together and still can't get this to work. Any help would be greatly appreciated. Thx in advance, Steve

>> I get the same output to the portal (repeating the same account in multiple lines)

Check that the fields in the portal, and the portal itself are from the correct relationship.

  • Author

Thx, Ender, I wasn't aware that both had to be derived from teh realtionship, not just the portal. - Steve

>>I wasn't aware that both had to be derived from teh realtionship, not just the portal.

In FM7, this is no longer the case; you can show fields from related tables other than the portal's. This makes portals even more powerful (and possibly more confusing.)

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.