Dear Sir,
the null object is just an initialization. The i am trying
to add a reminder in the "event" object and not on the "newEvent"
object. "event" object has been allocated as you have mentioned. But
the question is how to add a reminder in an event? The following two
calls are not working.
event.addExtension(reminder);
event.setExtension(reminder);
Please let me know if you know how to add a reminder in an event.
Best Regards,
Faisal
On Nov 6, 12:24 am, Trevor Johns <[EMAIL PROTECTED]> wrote:
> On Wed, Nov 5, 2008 at 9:15 AM, [EMAIL PROTECTED]
>
>
>
> <[EMAIL PROTECTED]> wrote:
>
> > Dear Sir,
> > I am trying to add a new reminder in a Google event by
> > using the following kind of code.
>
> > CalendarEventEntry event= GoogleCalendarUtils.findEvent(sessionInfo,
> > parentId);
> > CalendarEventEntry newEvent=null;
> > Reminder reminder = new Reminder();
> > event.addExtension(reminder);
> > event.setExtension(reminder);
> > newEvent=event.update();
> > GoogleCalendarUtils.updateEventEntry(sessionInfo,event,newEvent);
>
> > Unfortunately, it is not working. Can some one please help and tell me
> > how to add a new reminder in an Event.
>
> > Best Regards,
> > Faisal
>
> Well, for starters, you can't invoke methods on a null object. :)
>
> Change:
>
> CalendarEventEntry newEvent=null;
>
> to:
>
> CalendarEventEntry newEvent = new CalendarEventeEntry();
>
> Outside of that, can you provide a copy of the error you're receiving?
>
> --
> Trevor Johns
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---