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.

Verify multiple related records on a child table

Featured Replies

  • Newbies

Hi Folks, This is my first post here.

I need a script that could verify if all records related to the parent table are true.

For example: I need to change a field in the parent table if all records from a specific related field in the child table are set as "ok".

Again ,I have a order (parent), and to send it, all products(child) must be available, so when all the items in the product list are set as "available" the script automatically sets the order (parent) as "ready".

Couldn't manage to do that with "if" function.

Any ideas?

You could do this with a calculation =

Count ( Child::ParentID ) = ValueCount ( FilterValues ( List ( Child::Status ) ; "available" ) )

  • Author
  • Newbies

Hey! thanks for the quick reply.

Unfortunately still doesn't work properly. When ever any record in the field in the child (available) changes it switch the record in the parent.

I need to change only when All the records are set as available.

I see and understand the calculation but something still not working. I reviewed my database and looks allright.

Thanks again.

  • Author
  • Newbies

Wow! It works perfect!

I was trying to put the Calc inside the script. ;)

Many Thanks!

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.