Skip 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.

date calculation doesn't seem to update as date changes

Featured Replies

I wanted to flag jobs in a request database that are past their due dates so I created a calculation field.

If(due_date < Today, 1, 0)

Then I display the due date in red if the past due field has a 1. The client told me they need to close and reopen the database to make sure the past due jobs are displayed correctly.

If I edit due_date the calculation reflects the past due calculation correctly. For example, if I edit the due_date so it is greater then today the calculation is switched to 1. If I don't change the due_date but over time it eventually becomes greater then today, the calculation doesn't update, it remains 0.

Does this seem correct? Sounds like FMPro is working correctly.

If I were to run a script at night to correct the problem, what would be the correct action in the script? Relookup? Flush cache?

Tom

Hi,

Try using the "Status(CurrentDate)" function instead of "Today" and it should work. Also make sure your calculation field is set to "unstored".

[ June 06, 2001: Message edited by: mwiedemann ]

quote:

Originally posted by tbeidler:

I wanted to flag jobs in a request database that are past their due dates so I created a calculation field.

If(due_date < Today, 1, 0)

The Today() function has some serious limitations once you get a number of records in your database and if you plan on hosting the solution via FMServer.

Using the Status ( CurrentDate ) as an unstored calculation is a better solution, or setting a global field to Status ( CurrentDate ) if you need to use the current date in a relationship.

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

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.