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.

Scripting lists based on current weekday

Featured Replies

I'm not sure if this is a FIND question or SCRIPT question so I thought I would start here.

I would like to automatically generate a report of activities

Using a timestamp field, I would like to establish what day of the week it is (Monday, Tuesday , Wednesday, etc) then find all activities that are supposed to happen on that type of day.

For example: Payroll needs to be faxed on Wednesdays.

If today is Wednesday, I would like to be reminded to fax the payroll. I would like a list of all Wednesday activities.

If today = "Thursday" I would like the list to show Thursday's activities.

Is there a way to script this?

Thanks for any help.

Jarvis

Do you have a table of Activities, where each activity is assigned a day-of-week (or several)?

BTW, there is no 'find OR script' question: A find is a find - it can be performed manually, or it can be scripted, but it is still a find. In this case, it can be either find (the result is a found set) or a relationship (the result can be shown in a portal).

  • Author

Yes, I do have a table where each activity is assigned a day-of-week.

I guess what I am trying to figure out is how to make the database know what day it is.

Any ideas?

Jarvis

Try an unstored calculation field (result is Text) =

DayName ( Get ( CurrentDate ) )

Or, if you're doing a find:

Go to Layout [ < a layout of Activitites > ]

Enter Find Mode [ ]

Set Field [ Activities::DayOfWeek ; DayName ( Get ( CurrentDate ) ) ]

Perform Find [ ]

Edited by Guest

  • Author

Thanks Comment.

This is just what I needed!

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.