Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×
The Claris Museum: The Vault of FileMaker Antiquities at Claris Engage 2025! ×

This topic is 6226 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

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.

Posted

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

Posted

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.

Posted

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.

Posted

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

This topic is 6226 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

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