This is a migrated thread and some comments may be shown as answers.

GetAppointmentsInRange

2 Answers 138 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Jerry Gray
Top achievements
Rank 1
Jerry Gray asked on 08 Dec 2008, 04:27 AM
It seems that GetAppointmentsInRange will return only the first item in a recurrence pattern or an exception to the pattern (with its own record in the db).  If I run this on a date containing a standard recurrence of an appointment, nothing is returned.

I need to get a list of all the events on a date regardless of if they are a one-off, first of a recurrence, or otherwise...basically, if it is being rendered by Scheduler on a particular day, I am hoping to find a way to get the appointment via code.  Is that the intent of the "GetAppointments..." methods?  If not, what is the proper way to query for a day's events?

Thanks,
Jeff

2 Answers, 1 is accepted

Sort by
0
Jerry Gray
Top achievements
Rank 1
answered on 08 Dec 2008, 04:44 PM
I found (somewhere in the forums) that I could do this by simply hiding a Scheduler on a page and accessing the data in the DataBound method.  I could loop through the occurrences and stick the ones I wanted into a datatable.  This works, but it seems like a heavy solution...having to loop through all of the occurrences just to get a few.  Is this the intent of GetAppointmentsInRange or is this the best solution?

0
GrZeCh
Top achievements
Rank 2
answered on 08 Dec 2008, 06:09 PM
Tags
Scheduler
Asked by
Jerry Gray
Top achievements
Rank 1
Answers by
Jerry Gray
Top achievements
Rank 1
GrZeCh
Top achievements
Rank 2
Share this question
or