Today's events.

Hi,

I am using the scheduler with a JSON interface to a Spring / Hibernate server.

I have a requirement to list today’s events.

I am thinking of using your ‘layout’ to put today’s event in a separate cell from the scheduler.

Do you have any s/w to help in this process ?
(Especially thinking about recurring events and how to recognise them as todays).

Also any thoughts on s/w to help with the sidebar display ?

Thanks again.

Hello, Nigel.

You can use getEvents function to get list of events which happen at particular time frame:

var evs = scheduler.getEvents(new Date(2011,05,16), new Date(2011,05,17));

After that you can loop through array, create necessary html elements and append them to layout.
Also note that this function knows about recurring events and they will be returned too.

Best regards,
Ilya

Thanks worked well.

Note: Info also sent to support site with login details:

Unfortunately I have just noticed I am not picking up recurring events at all from getEvents.

Thanks for any help

If ext/scheduler_recurring.js is included on the page, getEvents must include occurrences of recurring events.

I have solved this problem it was that I had spelt the name of the ‘event_length’ JSON field returned from the server incorrectly.

Thanks for your help.