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.

Help! - Need to add a SUM field

Featured Replies

  • Newbies

Hey all.. experienced SQL/Web Dev here, with about 48 hours of FM experience smile.gif

Needless to say, I've achieved about 80% of whats needed for my project

(contact management system , but have this issue:

I need to create a field in one of my Contact layouts that reflects the total

of all that contact's donations; basically a sum of related fields in the

donations table. I found out how to do calculated fields, and use SUM, but i

dont know how to apply it to a situation when there are a dynamic number of

fields/ records to be added.

Any help/direction would truly be appreciated!

-ekz

... and use SUM, but i dont know how to apply it to a situation when there are a dynamic number of fields/ records to be added.

Sum() uses the relationship to summarize and bases its result on all related records belonging to that table occurence (matching that one Contact record) and only to specific fields included in Donations (or Contacts). Thus it must be unstored and will update itself every time a new donation (or Contact) is added.

If you add more fields and want them included in the summarized calculation, you will need to modify the calculation in Field Definitions; or use globals (set via script) to hold your 'variable' fields.

Create an account or sign in to comment

Important Information

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

Account

Navigation

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.