Recurring data into scheduler.parse

Please, i have this code inside “scheduler.parse([”:

{ start_date: "2020-04-21 18:00", end_date: "2020-04-21 20:00", text:"Feed ducks and city walking", evType:1},

How can i write this same evente with a recurring, in 28 days after without ending date… i’m trying this way but doesn’t work. What i’m doing wrong?

{ id: 4, start_date: "2019-12-18 12:00", end_date: "2019-12-18 14:00", evType:3, rec_type: "day_28___#5", event_pid:"0", text:"camisa-1"},

Tks

Marcelo Camisa

Hi @camisavp,

Please read this chapter in the documentation to understand how to set dates for recurrings.

Pay attention that end_date is the end date of the last event in a series in the format ‘yyyy-mm-dd 00:00:00’. Also, you need to specify event_length, it is the actual time length of an event in seconds.

{ 
 id: 1,
 start_date: "2019-12-18 12:00", 
 end_date: "9999-10-01 00:00:00",
 text:"Event 1",
 rec_type: "day_28___#5",
 event_pid: "0",
 event_length: 60*60*2
}

Here is the snippet.

I’m go to read right now.
Tks again Polina.

I had already read the article about 4 days ago. But when using the code, he puts the event every day, without breaks … including using what you sent as an example.

I think I’m still doing something wrong

		scheduler.parse([
		{ start_date: "2020-04-20 10:00", end_date: "2020-04-20 12:00", text:"Front-end meeting"},
		{ start_date: "2020-04-21 16:30", end_date: "2020-04-21 18:30", text:"Feed ducks and city walking", evType:1},
		{ start_date: "2020-04-22  8:00", end_date: "2020-04-22 11:00", text:"World Darts Championship (morning session)"},
		{ start_date: "2020-04-22 12:00", end_date: "2020-04-22 14:00", text:"Lunch with Ann & Alex", evType:2},
		{ start_date: "2020-04-23 16:00", end_date: "2020-04-23 17:30", text:"Game of Thrones", evType:3},
		{ start_date: "2020-04-25  9:00", end_date: "2020-04-25 11:00", text:"Design workshop", evType:4},
		{ start_date: "2020-04-25 14:00", end_date: "2020-04-25 17:00", text:"World Darts Championship (evening session)"},
		{ start_date: "2020-04-20 12:00", end_date: "2021-04-20 00:00", text:"Event 1", rec_type: "day_28___#5", event_pid: "0", event_length: 60*60*2},
		{ start_date: "2020-04-23 00:00", end_date: "2020-04-23 00:00", text:"Couchsurfing. Family from Portugal"}
	], "json");

@camisavp,

Did you include dhtmlxscheduler_recurring.js extension on the page?

Yes, i did, but, i had to download again because it was not working properly.

Now it’s normalized … Thanks for the tip