
1229
DEVELOPING
COLDFUSION 9 APPLICATIONS
Using External Resources
Las
t
upda
te
d 8/5/2010
•
Specify
RecurEveryWeekDay="true"
to specify a meeting that is held five days a week.
You cannot use daily recurrence to schedule a single event that occurs a multiple number of times, but only on week
days. To schedule such an event, specify a weekly recurrence with multiple recurrence days.
The following CFScript code sample sets daily recurrence for every three days and sets the event to occur 20 times:
IsRecurring="true";
RecurrenceType="DAILY";
RecurrenceCount="20";
RecurrenceFrequency="3";
Specifying weekly recurrence
You can create an event that always occurs on the same day or days of the week, and occurs every week or every several
weeks by specifying
RecurrenceType="WEEKLY"
. You use the following fields to control the frequency:
•
Define a
RecurrenceFrequency
field to specify the frequency of the event, in weeks. If you omit this field, the event
occurs every week. To schedule a meeting for every fourth week, for example, specify
RecurrenceFrequency="4"
.
•
Specify a
RecurrenceDays
field with a comma-delimited list of one of more of the following strings:
MON
,
TUE
,
WED
,
THUR
,
FRI
,
SAT
,
SUN
. If you omit this attribute, the event recurs on the day of the week determined by the
startTime
field value.
The following CFScript code sample sets an event that occurs on Tuesday and Thursday of every other week until
December 3, 2007.
IsRecurring="true";
RecurrenceType="WEEKLY";
RecurrenceEndDate="12/13/2007";
RecurrenceFrequency="2";
RecurrenceDays="TUE,THU;
Specifying monthly recurrence
You can create an event that always occurs on a monthly basis, or occurs every several months by specifying
RecurrenceType="MONTHLY"
. You can schedule two types of events:
•
Events that occur on the same date of each scheduled month, for example, on the tenth day of every three months.
•
Events that occur on the same week of the month and the same day of the week, for example, on the second thursday
of every month, or on the last Friday of every six months.
To specify a date-based monthly event, you only specify the recurrence type, and, if the recurrence is not every month,
the frequency. ColdFusion schedules the event to occur on the day of the week determined by the
startTime
field
value. To schedule a meeting that occurs on the start date every four months, specify the following recurrence fields:
IsRecurring="true";
RecurrenceType="MONTHLY";
RecurrenceFrequency="4";
To specify an event that occurs on the same day of the week, specify the following fields in addition to
RecurrenceType
:
Содержание COLDFUSION 9
Страница 1: ...Developing Applications ADOBE COLDFUSION 9...