datalink Posted April 23, 2011 Posted April 23, 2011 A system that we are working on generates workflow projections based on the week of year. Jobs are scheduled out over the course of year based on their required ship date, phrased as a calendar week. The script needs to locate records that are scheduled to ship with a range of the current week [ WeekOfyear(Get(CurrentDate)) ] and a variable that represents the number of weeks ahead the operator wishes to look. So...a simple scripted range find which sets the Ship Week field [ WeekOfYear(Get(CurrentDate))& "..." & WeekOfYear(Get(CurrentDate)+ $WeekRange ] works great. The issue that was just raised, is what about the end of year when the addition of the $WeekRange runs into the coming year. Any suggestions are welcome. Thanks in advance.
comment Posted April 24, 2011 Posted April 24, 2011 The definition of "week of year" is rather loose. Even Filemaker has two: WeekOfYear() and WeekOfYearFiscal(). Actually, it's 8 because WeekOfYearFiscal() has 7 possible variations. Once you define exactly what your "week of year" is (esp. at year boundaries), you can focus on the calculation.
Recommended Posts
This topic is 4963 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 accountSign in
Already have an account? Sign in here.
Sign In Now