3 messages in com.googlegroups.google-calendar-help-dataapiRe: orderby parameter| From | Sent On | Attachments |
|---|---|---|
| mickcates | 03 Sep 2007 12:23 | |
| Lane LiaBraaten (Google) | 14 Sep 2007 10:27 | |
| mickcates | 18 Sep 2007 14:26 |
| Subject: | Re: orderby parameter![]() |
|---|---|
| From: | mickcates (mick...@comcast.net) |
| Date: | 09/18/2007 02:26:43 PM |
| List: | com.googlegroups.google-calendar-help-dataapi |
Hi Lane the problem I continue to have with this is that the events are returned in the order of last updated, even with the orderby set to starttime. I must be missing little something. Is there anything else I should be looking for?
thanks
On Sep 14, 12:27 pm, "Lane LiaBraaten (Google)" <api....@google.com> wrote:
Himickcates,
I tried your query on my calendar and it seemed to work as expected. Can you provide some more information about your issue, like what you are expecting to happen and what is actually happending?
Thanks, Lane
On Sep 3, 12:24 pm,mickcates<mick...@comcast.net> wrote:
Theorderbyparameter doesn't work in my query. The sortorder and max- results parameters work fine. Could someone tell me what's up? thanks
public StringCollection myDateCollection = new StringCollection(); public StringCollection myEventCollection = new StringCollection(); public StringCollection myUrlCollection = new StringCollection(); public StringCollection myTimeCollection = new StringCollection();
private void CreateEventList() { EventFeed myEventFeed; CalendarService myService = new CalendarService("FairviewBandBoosters"); EventQuery myQuery = new EventQuery();
string queryString="http://www.google.com/calendar/feeds/ 4cdv48mtoekr8sp4ij492c9sfk%40group.calendar.google.com/private- e13e19142fa107764449944750c543f4/full?orderby=starttime&futureevents=true&sortorder=ascending&max- results=10";
myQuery.Uri = new Uri(queryString); myEventFeed = myService.Query(myQuery);
foreach (Google.GData.Calendar.EventEntry myEntry in myEventFeed.Entries) { if (myEntry.Times.Count > 0) {
myDateCollection.Add(myEntry.Times[0].StartTime.ToShortDateString());
myTimeCollection.Add(myEntry.Times[0].StartTime.ToShortTimeString()); myEventCollection.Add(myEntry.Title.Text);
myUrlCollection.Add(myEntry.Links[0].AbsoluteUri.ToString()); }
}
}- Hide quoted text -
- Show quoted text -




