Adobe COLDFUSION 9 Manual page 1235

Developing applications
Hide thumbs Also See for COLDFUSION 9:
Table of Contents

Advertisement

DEVELOPING COLDFUSION 9 APPLICATIONS
Using External Resources
Field
RecurrenceFrequency
RecurrenceWeek
RecurrenceDay
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
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
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
Field
RecurrenceMonth
RecurrenceWeek
RecurrenceDay
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.
Description
The frequency of the event, in months. If you omit this field, the event occurs every month.
The week of the month on which the event occurs. Valid values are
and
last
.
The day of the week on which the event occurs. Valid values are
field value. To schedule a meeting that occurs on the start date
startTime
:
Description
The month of the year which the event occurs. Valid values are
SEP
,
OCT
,
NOV
, and
DEC
.
The week of the month during which the event occurs. Valid values are
, and
.
fourth
last
The day of the week on which the event occurs. Valid values are
Last updated 8/5/2010
first
,
second
,
third
,
,
,
,
SUN
MON
TUE
WED
THU
RecurrenceType="YEARLY"
JAN
,
FEB
,
MAR
,
APR
,
MAY
,
first
second
SUN
,
MON
,
TUE
,
WED
,
THU
1230
,
fourth
,
,
, and
.
FRI
SAT
. You can
,
JUN
,
JUL
,
AUG
,
,
,
third
,
FRI
, and
SAT
.

Advertisement

Table of Contents
loading

Table of Contents