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 <[EMAIL PROTECTED]> 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 :)
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---