Re: Appointments
Adam Tauno Williams <[email protected]> Mon, 06 Mar 2006 13:42:06 -0500
| Newsgroups | gmane.comp.cms.opengroupware.xmlrpc.devel |
|---|---|
| Message-ID | <[email protected]> |
> > i tried to insert an appointment, but in this description there are no hints to the appointment types and how they are defined.
> > i also miss an attribute for a title or name of the appointment.
> In C# I initialize a new appointment document like -
> appointment = new XmlRpcStruct();
> appointment.Add("startDate", DateTime.Now);
> appointment.Add("endDate", DateTime.Now.AddHours(1));
> appointment.Add("title", "");
> appointment.Add("comment", "");
> appointment.Add("location", "");
> appointment.Add("cycleEndDate", DateTime.Now.AddDays(30));
> appointment.Add("aptType", "meeting");
> aptType is a string like: "birthday", "phone call", "duedate",
> "vacation", "at home", "ill", "meeting", "all types", "outward",
> "tradeshow". Those are the defaults, you can define more; there is
> information in the docs plone.
If the appointment is a cyclic then you put the cycle specifier in a
"type" key, like:
appointment.Add("location", "once"); - which means not a cyclic. The
values for "type" are something like -
cyclelist.AppendValues("None", "once");
cyclelist.AppendValues("Annually", "yearly");
cyclelist.AppendValues("Monthly", "monthly");
cyclelist.AppendValues("Weekly", "weekly");
cyclelist.AppendValues("Week Day", "weekday");
cyclelist.AppendValues("Every Second Week", "2_weekly");
cyclelist.AppendValues("Every Fourth Week", "4_weekly");
- but with recent TRUNK you can put in ICAL cycle specifiers as well (I
haven't tested this, but they exist in the database).
signature.asc
(application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (GNU/Linux) iD8DBQBEDIJ+LRePpNle04MRAiI+AJ4nHgVze6F2j9PgbcXlsVBsaze6ggCePXds Pv0y2VBr9WH2EhJqi0QZK4s= =ZB84 -----END PGP SIGNATURE-----