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.

How to sum selected related records:

Featured Replies

Simple invoicing system with Parent table and LI table. In the LI table I have a txt field to indicate if the item is taxable. If taxable the user enters "T" otherwise leaves it empty. My problem is how (from the parent table) to sum taxable items only. I know I can create another TO of LI and link it to parent to obtain the total. I am wondering if there is a calc or custom function that can give me the total without resorting to an extra TO or extra fields in LI.

I have tried the TypeSumField cf listed in CF library on the forum but it does not work all the time.

Thks

Simple invoicing system with Parent table and LI table. In the LI table I have a txt field to indicate if the item is taxable. If taxable the user enters "T" otherwise leaves it empty. My problem is how (from the parent table) to sum taxable items only. I know I can create another TO of LI and link it to parent to obtain the total. I am wondering if there is a calc or custom function that can give me the total without resorting to an extra TO or extra fields in LI.

I have tried the TypeSumField cf listed in CF library on the forum but it does not work all the time.

Thks

Since TypeSum should work, what problems are you experiencing and can you show the calculation you've used?

  • Author

Please see attached. Thanks for helping.

SumByTypeExpl.ZIP

It doesn't work, because the custom function you are using expects the Type field to always have a value. Your "Taxable" field can be either "Yes" or empty.

Let me suggest a simpler approach.

TypeSumS.fp7.zip

  • Author

So simple, so effective :thankyou:

Please see attached. Thanks for helping.

Your file works correctly and returns the correct value IF you recognize that there cannot be any empty values in the TYPE field.

The attached file includes a modified custom function that handles empty values in the TYPE field.

typesumexpl.zip

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.