I have an Appointment BO to capture a recurring event.
If I use a Calendar query I can see that recurrence in a diary format.
However if I want to know Contract anniversaries for the next 3 months I don't really need a diary, I just need to see the recurrences of Contract anniversaries over the next three months.
Is there a way in a regular query to access recurrence?
Appointment BO Access Recurrence In Regular Query
-
- Posts: 1457
- Joined: Tue Jan 24, 2017 5:51 am
- Location: 'Stralya
-
- Posts: 1457
- Joined: Tue Jan 24, 2017 5:51 am
- Location: 'Stralya
Re: Appointment BO Access Recurrence In Regular Query
Seems like the Agenda view is the way to achieve it, and to fiddle with the Javascript
And
Does anyone know how to add this to the initialisation script? The key seems to be the
return kendo.date.addDays(date, 31);
Code: Select all
var CustomAgenda = kendo.ui.AgendaView.extend({
endDate: function() {
var date = kendo.ui.AgendaView.fn.endDate.call(this);
return kendo.date.addDays(date, 31);
}
});
Code: Select all
views: [
"day",
"week",
// "custom agenda",
{ type: "CustomAgenda", title: "Custom Agenda" }
],
return kendo.date.addDays(date, 31);