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.

Flag In Main When Condition Met In Related

Featured Replies

Have 2 tables, Main and Component with records related via serial number.

I need to find a way to raise a flag in Main when all related records in Component have the same condition met.

i.e. - when the "completed" field for all 3 components related to the master say "yes" a field in master automatically says "yes" too.

Thanks in advance.

I usually set up boolean fields, i.e. True/False, Yes/No, Flagged/Unflagged as number fields that will only ever contain either 1 or 0, and format the field appropriately.

If you follow that standard, then in your Main file you can define a new calculation field:

Valid_Flag (unstored, number) = Sum(Related_Components::Flag) = 3

will return 1 if all 3 components are flagged.

If each record in the main file has a different number of related components then

Valid_Flag (unstored, number) = Sum(Related_Components::Flag) = Count(Related_Components::Flag)

should work.

  • Author

That did the trick. Just what I was looking for.

Thanks a bunch, Bridge!

BTW, my scenario calls for the second version of your solution with different totals of related. Should have mentioned that originally...

[ February 04, 2002, 11:58 AM: Message edited by: Jim Mitchell ]

I'm glad I could help; I hope it works well for you.

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.