[OGo-XML-RPC] Appointments

Adam Tauno Williams xmlrpc@opengroupware.org
Mon, 06 Mar 2006 13:42:06 -0500


--=-qPY5lOs+7v8inJRU0Mgy
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

> > i tried to insert an appointment, but in this description there are no =
hints to the appointment types and how they are defined.=20
> > i also miss an attribute for a title or name of the appointment.
> In C# I initialize a new appointment document like -=20
> appointment =3D 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 -=20
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).

--=-qPY5lOs+7v8inJRU0Mgy
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)

iD8DBQBEDIJ+LRePpNle04MRAiI+AJ4nHgVze6F2j9PgbcXlsVBsaze6ggCePXds
Pv0y2VBr9WH2EhJqi0QZK4s=
=ZB84
-----END PGP SIGNATURE-----

--=-qPY5lOs+7v8inJRU0Mgy--