Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 6139 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

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

Posted

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

Posted

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

Posted (edited)

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

This topic is 6139 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

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