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.

Search for a specific value in Child Records

Featured Replies

Hello:

I have standard Invoice – InvoiceLineItems - Product setup. I am trying to achieve the following:

From the perspective of the parent record if any of the child records contain ProductID P19 return 1.

The context is: P19 is a Service Fee that is charged only in specific cases. I need a (control) field in parent table to return 1 if among the charges (ie the line items) there is a Service Fee for that invoice.

  • Author

no suggestion or comment ?

Are you still on fm7?? GTRR(FS) works wonders here! Before fm8 could it only be performed in the vicinity of this:

http://www.kevinfrank.com/download/multi-gtrr.zip

--sd

I don't think GTRR returns a result in a calculation field. This can be done with:

not IsEmpty ( FilterValues ( List ( Child::ProductID ) ; "P19" ) )

In version 7, a value list of Child::ProductID (related only) must be defined, so that ValueListItems may be used instead of the List() function.

However, this is a case of violating the 'one fact per field' rule. Strictly speaking, the product type should be in a separate field that would allow independent counting.

  • Author

Soren:

I am running FM7 at home and FM8.5 at work.

Will be upgrading to 8.5 Adv soon.

Comment: thanks for the solution, it surely is superior to what I currently have.

I don't think GTRR returns a result in a calculation field. This can be done with:

I would make a search in the lineItems table, and then make a GTRR(FS) on the found set - getting to the Invoice table.

--sd

You are assuming the only purpose of this field is to be used in a find. If this assumption is correct, then I agree that the field is not required.

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.