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.

DayName Calculation not Refreshing

Featured Replies

Ok, I'm going nuts here. I've got a field called DayName that is a calculation. The calc is like this: DayName(Status(Current Date))

For some odd reason, it never shows the right day. The field is global and I am not storing the result. But for some stupid reason it shows "Tuesday". (Its currently Thursday.) I thought I needed to close it and reopen it but that changed nothing. I need this thing to updated daily so that when the dayname is "Monday" (12am monday morning) the database will execute a different script that the one it normally executes every 3 minutes.

Ideas?

Global calculations don't exist in version 6. Perhaps you are using an auto-enter calculation instead of a true calculation field?

  • Newbies

I'm also confused about whether or not your DayName field is a global or a calculation.

Either way it seems like there's a way to solve this...

If you're running a script that checks the name of the current day of the week, you could set your global "DayName" with a script addition (or subscript) that would be:

Set Field ["DayName", "DayName(Status(CurentDate))"]

If you're using a calculation field try defining the calculation as = DayName(Status(CurrentDate))

Result is text and storage option "unstored".

This method will cause the field to change to the new day each time you move to a different record, create a new record or change the focus to the DayName field, etc. You do have to do something like the previous examples to cause it to recalculate this way.

It's a little troubling that the name of your field is also the name of a function, so you'll have to be careful about how it might work it's way into one of your calculations as either a function or a field reference unintentionally.

Anyway, I hope this helps.

MT

  • Author

Ok, sorry, its not a global field. Its just a calculation that is unstored. My every-three-minute script checks this field and says if DayName = "Monday" then ... Should I be doing something different to get that DayName calculation to update? Thanks!

As kenji said, if you don't modify the current record somehow or move to another record, it won't update. You might be better off just using the calculation in the script. If [ DayName(Status(CurrentDate)) = "Monday" ]...

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.