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.

How To: Update a number field when calc in record changes?

Featured Replies

Hello:

My question is on how to ensure that a plain number field (CountCasesResult) is displaying the result of a calculated field (CountCasesCalc ) whenever changes occur to that calculated field - automatically. I'm trying to speed up a list-based summary report that I created with the help of Matt-squared (Matt Navarre, Matt Petrowsky).

I was manually running a replace command, but ended up creating a new calculated field, which is becoming a real drag.

I'd like this to be automatic, like FileMaker's indexing of fields for calculation purposes.

Currently, I have a self-join in the data file, along with these 3 fields:

CountCasesCalc - count of "case id" within the chosen analysis for the selected issue

uniqueCasesCalc - count of unique cases on a selected issue

CountCasesResult - Just a number field to hold the result.

I also tried this as auto-enter, like my HostTimeStamp, but it is not updating when the referenced calc (CountCasesCalc) changes:

Let (

~trigger = CountCasesCalc ; Case ( uniqueCasesCalc > 0 and CountCasesResult ≠ CountCasesCalc ; CountCasesCalc ; CountCasesResult )

)

The report seems much faster with the number field result compared to the unstored calculation I have now.

Does this require a trigger in the data file? Am I looking for the impossible? Any suggestions will be very welcome.

Thanks in advance.

- - Scott

Try:

AutoEnter to CountCaseResult:

Case ( CountCaseCalc = CountCaseCalc ; uniqueCasesCalc )

don't forget to allow replacement

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.