
1230
DEVELOPING
COLDFUSION 9 APPLICATIONS
Using External Resources
Las
t
upda
te
d 8/5/2010
The following CFScript code sample sets an event that occurs on the third Thursday of every three months:
IsRecurring="true";
RecurrenceType="Monthly";
RecurrenceFrequency="3";
RecurrenceWeek="third";
RecurrenceDay="THU";
Specifying yearly recurrence
You can create an event that always occurs on a yearly basis by specifying
RecurrenceType="YEARLY"
. You can
schedule two types of events:
•
Events that occur on the same date of each year, for example, on every August 10.
•
Events that occur on a specific day week and month, for example, on the second Thursday of August.
To specify a date-based yearly event, you only specify the recurrence type. ColdFusion schedules the event to occur
each year on the date determined by the
startTime
field value. To schedule a meeting that occurs on the start date
every year, specify the following recurrence fields:
IsRecurring="true";
RecurrenceType="YEARLY";
To specify an event that occurs on the same day of the week and month each year, specify the following fields in
addition to
RecurrenceType
:
The following CFScript code sample sets an event that occurs on the third Thursday of August three months:
IsRecurring="true";
RecurrenceType="YEARLY";
RecurrenceMonth="AUG";
RecurrenceWeek="third";
RecurrenceDay="THU";
Example: Setting calendar recurrence
The following example lets you create events with all types of recurrence. To limit the code length, it does not prevent
you from attempting to create events with invalid field combinations. When you submit the form, if an event is created,
the form redisplays, preceded by a dump that shows the field values that were used to create the event, and the event
UID. You cannot resubmit the form to modify the event, but you can change some values in the form and create an
event.
Field
Description
RecurrenceFrequency
The frequency of the event, in months. If you omit this field, the event occurs every month.
RecurrenceWeek
The week of the month on which the event occurs. Valid values are
first
,
second
,
third
,
fourth
,
and
last
.
RecurrenceDay
The day of the week on which the event occurs. Valid values are
SUN
,
MON
,
TUE
,
WED
,
THU
,
FRI
, and
SAT
.
Field
Description
RecurrenceMonth
The month of the year which the event occurs. Valid values are
JAN
,
FEB
,
MAR
,
APR
,
MAY
,
JUN
,
JUL
,
AUG
,
SEP
,
OCT
,
NOV
, and
DEC
.
RecurrenceWeek
The week of the month during which the event occurs. Valid values are
first
,
second
,
third
,
fourth
, and
last
.
RecurrenceDay
The day of the week on which the event occurs. Valid values are
SUN
,
MON
,
TUE
,
WED
,
THU
,
FRI
, and
SAT
.
Содержание COLDFUSION 9
Страница 1: ...Developing Applications ADOBE COLDFUSION 9...