<aman_tuladhar@yahoo.com> wrote:
>
> I am trying an example found in Zend Gdata Google Calendar documentation.
> It seem to work and create Event, but it is not storing the valueString
> data.
> I want to use valueString to store human readable date.
>
> Is it some kind of bug in the framework or did I do something wrong ??
> Any help or hint would be appreciated very much.
>
> Thanx
Hi Aman,
The gd:when element (and Zend_Gdata_Extension_When, in turn) is part of the
Google Data common elements suite. Since these elements are used across all
of the Google Data APIs, there are some fields that aren't supported by all
APIs.
The valueString property happens to be one of these, and Google Calendar
doesn't actually do anything with it that I can recall. You're setting it
properly, but the data is being discarded when it reaches the server.
You'll either have to store your human-readable information in the event
description, or as an extended property (in which case only your
application would know what to do with it).
If you're just looking for a way to create events using a freeform time
description, you could also use the quick add interface described here:
http://code.google.com/apis/calendar/docs/1.0/developers_guide_php.html#CreatingQuickAdd
--
Trevor Johns
没有评论:
发表评论