Skip 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.

Finding a common set of related records

Featured Replies

Hi all,

I've been trying for hours and I can't seem to figure out an easy way to do this. Here's the scenario:

I need to figure out a way of testing to see if the related records of a found set of records have commonalities, and if so, what those commonalities are.

In more specific terms, I have a found set of records from a table called Assets. An Asset can be related to one or more Projects (via a Usage table). In the course of a script, I need to test to see if my found set of Assets has at least one project that's common to the entire found set, and if so, the ID(s) of the Project(s).

I've been working on this for a while and I just can't find a straightforward way of doing it.

Thanks in advance for any help offered!

-Kent

How about:

Go to Record [ First ]

Set Variable [ $commonIDs ; List ( Projects::ProjectID ) ]

Loop

Set Variable [ $commonIDs ; FilterValues ( List ( Projects::ProjectID ) ; $commonIDs ) ]

Go to Record [ Next; Exit after last ]

End Loop

  • Author

Hi Michael,

That's it. FilterValues() was what I was missing.

Thanks a million!!!

-Kent

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

Search

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.