Appointment BO Access Recurrence In Regular Query

If you have questions or if you want to share your opinion about Aware IM post your message on this forum
Post Reply
PointsWell
Posts: 1457
Joined: Tue Jan 24, 2017 5:51 am
Location: 'Stralya

Appointment BO Access Recurrence In Regular Query

Post by PointsWell »

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?
PointsWell
Posts: 1457
Joined: Tue Jan 24, 2017 5:51 am
Location: 'Stralya

Re: Appointment BO Access Recurrence In Regular Query

Post by PointsWell »

Seems like the Agenda view is the way to achieve it, and to fiddle with the Javascript

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);
        }
      });
And

Code: Select all

 views: [
            "day",
            "week",
            // "custom agenda",
            { type: "CustomAgenda", title: "Custom Agenda" }
          ],
Does anyone know how to add this to the initialisation script? The key seems to be the
return kendo.date.addDays(date, 31);
Post Reply