Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Steve on Oct 09, 2009 09:58
open dhtmlx forum
Scheduler - Recurring Events

I've looked but haven't seen any documentation on the format of rec_type for recurring events.

For example a rec_type value of

week_1___1,2,3,4,5#no

Can you explain how this is defined and how I would work with it.

Thanks
Answer posted by Stanislav (support) on Oct 12, 2009 04:14
Normally you need not change this values manually, but you can details about recurring encoding at

http://dhtmlx.com/dhxdocs/doku.php?id=dhtmlxscheduler:recurring_events

rec_type

This data will be set automatically through scheduler interface

type of recurring encoded in string [type]_[count]_[count2]_[day]_[days]#[extra]
type - type of repeating “day”,”week”,”week”,”month”,”year”
count - how much intervals of “type” come between events
count2 and day - used to define day of month ( first Monday, third Friday, etc )
days - comma separated list of affected week days
extra - this info is not necessary for calculation, but can be used to correct presentation of recurring details

For example:
day_3___ - each three days
month _2___ - each two month
month_1_2_1_ - second Monday of each month
week_2___1,5 - Monday and Friday of each second week
none - special type value, which is used by deleted events from the serie (it will not be rendered in grid , but block recurring of repeated event in defined time)