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.

Calculating sum of portal records

Featured Replies

How can I get a sum of all the values from all rows in a given field of a portal? I have a line items portal on an Invoice layout. I need the total of each charge in the line items to be displayed outside the portal (in the rest of the invoice) and be able to use that in another calculation.

In the attached file, it's the "Rental Cost" of the top portal that I want to add up and put into the "Rent" field in the Fee section on the right of the layout.

Rental.fp7.zip

Sum ( Line_Items::RentalCost )

FYI if you are printing this forum i would make sure that the button elements don't print by ticking this check box.

  • Author

Sum ( Line_Items::RentalCost )

FYI if you are printing this forum i would make sure that the button elements don't print by ticking this check box.

post-51827-0-00764700-1343201944_thumb.p

Some things in FM (and OSX in general) are so simple that it doesn't even occur to you that the solution could be that simple! I entered Sum ( Line_Items::RentalCost ) in the calculation for the field I wanted the total in and it worked. I thought I needed to do something different to tell FM to only total the rental costs for this invoice but I guess the relationship does that already! THANKS :)

And, I do plan on removing items from view when printing as you mentioned, but I haven't really started tweaking the layout yet. Still working on getting all the calculations to work. Thanks again for you help! yep.gif

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.