Hi,
How can I format as rec_type an event which occurs monthly every 6th day of month?
Thanks
Aleix Vergés
Hi,
How can I format as rec_type an event which occurs monthly every 6th day of month?
Thanks
Aleix Vergés
rec_type = month_1__
start_date = 2010-3-6
So you code the “each month” in rec_type, and specify “6th day” as part of start_date
Hi,
Thank you very much for the answer.
Is there any complete reference about the possibilities and limitations of "rec_type"? With the documentation available in the Support web section is not enough to complete all the possibilities.
Thanks again,
Aleix Vergés
System Bages
Rules described here
docs.dhtmlx.com/doku.php?id=dhtm … ntegration
Shows all possibilities
Basically you can use set event as “reated each N periods”, where N and period type can be configured. Additionally you can define “correct to necessary day behavior” ( 3rd and 4th components of rec_type) which allows to define “Nth some day of week” correction.
While it allows to define pretty wide set of repetition rules, its not universal - there are some rules which can’t be defined ( for example - last day of the month )
Hi,
I cannot see in the documentation any example about yearly events. Could you give an example of a rec_type configured to be a yearly event?
Thanks
Aleix Vergés
Format is exactly the same
rec_type set as “year_1__”, start_date points to the date, which you want to repeat each year. ( to repeat it each N years, replace 1 in the rec_type with necessary number )
Hi,
Thanks Stanislav. Now my last question:
How can be sent the exceptions in XML format to the scheduler? For exmaple:
- I have an event which happen every monday but the next monday will not happen for some reason
- I have an event which happen every monday at 18:00h, but the next monday will happen at 16:00h.
Thanks
ALeix Vergés
Its a bit tricky
exception - deleting
<event id="1">
<start_date>2010-10-04 00:00:00</start_date>
<end_date>9999-02-01 00:00:00</end_date>
<text>New event</text>
<rec_type>week_1___1#no</rec_type>
<event_pid>0</event_pid>
<event_length>300</event_length>
</event>
<event id="2">
<start_date>2010-10-11 00:00:00</start_date>
<end_date>2010-10-11 00:05:00</end_date>
<text>New event</text>
<rec_type>none</rec_type>
<event_pid>1</event_pid>
<event_length>1286744400</event_length>
</event>
event#id=2 is exception, it has
event_pid == ID of main event
rec_type = “none” - which means deleted event
event_length = timestamp of start_date for deleted event ( 1286744400 == 2010-10-11 )
start_date, end_date, text - doesn’t matter
exception - modification
<event id="1">
<start_date>2010-10-04 00:00:00</start_date>
<end_date>9999-02-01 00:00:00</end_date>
<text>New event</text>
<rec_type>week_1___1#no</rec_type>
<event_pid>0</event_pid>
<event_length>300</event_length>
</event>
<event id="3">
<start_date>2010-10-19 00:00:00</start_date>
<end_date>2010-10-19 00:05:00</end_date>
<text>New event</text>
<rec_type></rec_type>
<event_pid>1</event_pid>
<event_length>1287349200</event_length>
</event>
event#id=3 is exception, it has
event_pid == ID of main event
rec_type = “” - which means events exists and its not recurring
event_length = timestamp of start_date for deleted event ( 1287349200 == 2010-10-18 )
start_date, end_date, text - values specific for the new event ( it was expected on Oct 18, but was moved to Oct 19 )