Download Chapter 2 Publicus ini

Transcript
SAXOTECH Online Tags Manual
Examples:
FromDate may not be the first day in the pattern, e.g., when selecting only Mondays and today is a Tuesday, the first event date is
actually 6 days in the future. The following examples show how patterns selects occurrence days
1 - Daily
1,1 = For every 2 days - If FromDate is a Monday, then it selects Monday, Wednesday, Friday etc.
1,2 = Selection is defined as weekdays - if FromDate is a Thursday, it selects Thursday, Friday, Monday, Tuesday, Wednesday,
Thursday etc.
2 - Weekly
2,1 = Repeat for every 2 weeks on Mondays and Tuesdays - if FromDate is a Tuesday, that day is selected. The next weeks' Monday
and Tuesday is not selected. In the week after that week the Monday and Tuesday is selected. Then two weeks later Monday and
Tuesday is selected again.
2,1 = Repeat for every 2 weeks on Mondays and Tuesdays - if FromDate is a Wednesday, no selections are made for the week. The
next weeks' Monday and Tuesday is not selected. In the week after that week the Monday and Tuesday is selected. Then two weeks
later Monday and Tuesday is selected again.
3 - Monthly
3,1 = On day 14 every 2 months - if FromDate is February 13th, it selects February 14th, April 14th, June 14th etc.
3,1 = On day 14 every 2 months - if FromDate is February 17th, it selects April 14th, June 14th etc.
3,2 = The second Tuesday every 1 month. If FromDate is February 17th, 2009, the second Tuesday is the 10th. Therefore, the first
occurrence is the second Tuesday of March, second occurrence is the second Tuesday in April etc. Had the second Tuesday in the
current month been in the future, then that Tuesday would have been the first event date.
4 - Yearly
4,1 = On day 14 in month 2 - if FromDate is February 17th, 2009 the first occurrence is February 14th, 2010. Had the FromDate been a
week before, the first occurrence had been on February 14th, 2009.
4,2 = The last Sunday in month 2 - if FromDate is before the given date, the first occurrence is in the same year, otherwise they start
being calculated from the next.
Form examples
Submit a simple non-recurring events
Here we want a simple input form, where the event enterer only needs to supply date and time of the event.
Because we don't want any recurrence to happen, we preselect the recurrence pattern to stop after one occurrence. And the pattern we
choose is the daily pattern (1,1) with jump 1 (every day) so that we know for sure that the actual event date is going to be the same day
as the start date.
326