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.

Can I control when a field value is calculated?

Featured Replies

Hello

I have a peculiar problem I cannot see the solution of:

I have a database where users are creating records via the web. I would like to "mark" the first record of a given type, but not the following of the same type, so that I can search for all the "first records" - You get the idea?

I have a field that counts how many there are it is of its type (counts numbers of a relation). What I need is to "freeze" this value in another field, so that when there is only one relation (meaning it is the first of its kind), this field gets the value 1, and when the next is created, this will get the number 2 and so on.

I thought i could do it by calculating it (if the counter is 1, set value 1, else set value 0), but the field is calculated when the record is created, BEFORE the relation is counted, so the relation is, in the eyes of the calculation field, always =0!

Is the any way to tell a field to calculate its value AFTER a value has been entered into another field?

You may be able to use "Validation" with a Calculation when a field is changed.

Good Luck.

Garry

A calculation field, if unstored, will recalculate when any of its operands change. So, unless I'm misunderstanding your problem, just change the storage option for your calculation field.

  • Author

Thanks for your comments! And: I found an elegant solution to the problem myself - in the help file for Filemaker! See the item: "Finding duplicate values using a self-join relationship" A simple and elegant solution for marking the first record of a type with one value and the following with another value.

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.