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:
CalendarDateTime - data type: Time and Date
StartDateTime - data type: Time and Date
ExcludeFromView - data type: Text
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).
Last modified date: 01/29/2015