<calendar>
This tag can be used to include an interactive calendar in a status board. Rendered as an <iframe>, the calendar offers day, week, work week, month, and year views that users can specify. In addition, users can use the attributes listed below to create appointments that are tied to a Unified Command Platform record in a table identified in the tag.
If you do not specify width and height attributes for the <calendar> tag, the default width is 100%, and the height will resize to fit the window so that scrolling is minimized or not required.
| Attribute | Allowed Values | Requirements | Description |
|---|---|---|---|
| appointmentnamefield | %fieldname | Required | Appointment name on the calendar. |
| appointmenttypefield | %fieldname | Required | Appointment type on the calendar; referenced field must use the <select> tag in the Input view and use a Unified Command Platform list with the list attribute. See the Note, below. |
| starttimefield | %fieldname | Required | Appointment start time on the calendar. |
| endtimefield | %fieldname | Required | Appointment end time on the calendar. |
| commentsfield | %fieldname | Required | Appointment comments on the calendar. |
| displayview | %viewname | Required | Display view to be shown when the user clicks on an appointment. |
| view | (day|week|work_week|month|year)month | Optional | Specify the default view for the calendar. |
-
The <eocrepeatallrecords> tag cannot exist on the display view that includes the calendar.
-
The appointmenttypefield attribute holds the name of a list item and the code looks up a List Name. The field specified must have been populated by something similar to <select name="fieldname" list="listname"/>, where "listname" is the actual name of the list.
Example
<tr>
<td>Name:<input type="text" name="name" /></td>
</tr>
<tr>
<td>Type of Appointment<input type="text" name="type"/></td>
</tr>
<tr>
<td>Start Time<input type="text" name="starttime" value="_currentdatetime"/>
</td>
</tr>
<tr>
<td>End Time<input type="text" name="endtime" value="_currentdatetime"/>
</td>
</tr>
<tr>
<td>Comments: <textarea name="comments" id="" cols="30" rows="10"></textarea></td>
</tr>
To create a calendar on the display view:
<calendar width="500px" height="500px" appointmentnamefield="name"
appointmenttypefield="type" commentsfield="comments"
endtimefield="endtime" starttimefield="starttime" displayview="Test"/>