2 messages in com.googlegroups.google-calendar-help-dataapiRe: JAVA: location and time update of...
FromSent OnAttachments
Anto19 Jul 2008 23:14 
Austin (Google)22 Jul 2008 10:25 
Subject:Re: JAVA: location and time update of an existing event
From:Austin (Google) (api.@google.com)
Date:07/22/2008 10:25:42 AM
List:com.googlegroups.google-calendar-help-dataapi

Hi,

To update times and locations of an event entry would entail the same approach that you need to first clear the list of When or Where object and then add your updated When or Where object. The following demonstrates how to update the times of an event -

List whens = entry.getTimes(); whens.clear();

When newWhen = new When(); newWhen.setStartTime(getFromToday(2)); newWhen.setEndTime(getFromToday(3));

whens.add(newWhen);

entry.update();

Hope it helps, Austin

On Sat, Jul 19, 2008 at 11:15 PM, Anto <ant@gmail.com> wrote:

Hi, I'm trying to update an existing event, I' ve changed the title and the description without any problem but I can't update location and time, I can only add new locations and times but how can I replace the first in the list? Thanks for your answers :)