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.

indexed calculation field dependent on date

Featured Replies

Hi

I've created an indexed calculation field which is dependant on

(among other things) a date field and the Today function.

However when the date changes, the calculation field does not

automatically update. I assume this is because Filemaker Help

says I have to first stop and restart the server each day

for the Today function to update.

Is there any way around this ?

Thank you

(and apologies if this is the wrong forum... this is my first post !)

Hi daniel, and Welcome to the Forums.

That is how the Today Function works. Use the Status(CurrentDate) instead.

However, using the Status(CurrentDate) will kept the calculation field from indexing, so you face another challenge.

Why do you need this field to be index, is it a Key in a relationship?

Maybe there is another way to set this up if so.

Lee cool.gif

BTW, please update your profile to reflect the Platform, operation system and version of FileMaker you are using. The link is just below your name in blue "profile".

You could have a "today date" field that is updated each day by a script. Your calculation field could refer to that field.

  • Author

Thanks for the input!

The field is not a key but is used frequently (many times a day)

for searches. It needs to be searchable quickly. However I will

use Status(CurrentDate) and see what difference it makes to the

search speed.

Interestingly, today I discovered that even after stopping and restarting

the server, the field has not been updated. Is this because it has been

indexed ?

  • Author

You could have a "today date" field that is updated each day by a script. Your calculation field could refer to that field.

Thats both simple and clever ! I like it !

Why didn't I think of that?

Is there any way of getting a script to run every day automatically, though?

Create an account or sign in to comment

Important Information

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

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.