Below is an example of the code I found for querying a calendar to get
event results.  It does work, but I am having problems with doing a
full text query 'q' and limit results for lets say the next week by
using the 'start-max' date it seems I can only do one query.setParam.
This gives me up to 10 events that have "Intermediate" in the events
for the next week.  I've had to comment out a couple of lines as you
can see below, to check to make sure each line works, and they do by
themselves.  I just haven't figured out how to combine them.  Any help
is much appreciated.

function loadCalendar(calendarUrl) {
  var service = new
google.gdata.calendar.CalendarService('MyNewList');
  var query = new
google.gdata.calendar.CalendarEventQuery(calendarUrl);
  query.setOrderBy('starttime');
  query.setSortOrder('ascending');
  query.setFutureEvents(true);
  query.setSingleEvents(true);
  query.setMaxResults(10);

  query.setParam('q', 'Intermediate');
//  query.setParam('start-min', '2008-01-22T23:59:59')
//  query.setParam('start-max', '2008-01-29T23:59:59')

  service.getEventsFeed(query, listEvents, handleGDError);
}

Dave
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Calendar Data API" group.
To post to this group, send email to 
[email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-calendar-help-dataapi?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to