Domino Connection


Accessing the calendar

To create an application, that is based on the calendar included in a Domino mail file, you have to perform two steps:

  1. Creating a calendar entry form
  2. Creating a view to display the calendar

Creating a calendar entry form

AbtNotesDemoMailCalendarEntry45 is a sample that shows you how to create a document that works as a Reminder type calendar entry. Every time you open the application, a new Reminder type document is created. Some of the visible fields are set up to provide default values (for example the date and time fields - which indicate the current time and date). When you use the Save button, the current document is stored in the sample mail database and a new calendar entry (with default settings) is immediately created. That is why the time and date values change when you store the document. The sample is based on the use of a regular Mail part, but it could also be constructed from a simple Domino Form part. The Domino Mail part is set up to use the _Calendar Entry form in the sample mail database. As there are a couple of additional fields in a Reminder type calendar entry, you will need to add these fields as user defined form fields in the mail parts settings pages. In particular provide the following fields:

Generally you have to supply default values for a number of fields to make the application work properly. Check the methods in the script editor of the AbtNotesDemoMailCalederEntry45 sample code to find out which defaults are required. Some values are magic internal numbers (like the appointmentType) - others are straightforward (like the current date and time).

Creating a view to display the calendar

The AbtNotesDemoCalendarView45 samples show you how to open a Domino View to display the contents of the calendar. Although the calendar is usually displayed in a tabular layout in the Notes client, it is structurally a flat view (which is basically a sorted, but uncategorized list of calendar entries). Domino Connection does not provide a tabular control for the calendar view, so you will have to use the flat view representation. The sample works very much like the mail view, except that you replace the view name with ($Calendar) and supply the AbtNotesDemoCalendarEntry45 for editing documents instead of the AbtNotesMail45. If you need a step by step description of how to build the sample, please read Using a View Part to list mails in a mail database.


[ Top of Page | Previous Page | Next Page | Table of Contents ]