Enables calendar or group selection using type-ahead search. Represents selections as a querystring: when groups are selected the format is Group=ID&IncludeSubGroups=True, when calendars are selected the format is Calendar=ID.
Supported Data Types
custom
Scripted Extension Configuration XML
<property id="propertyId" labelResourceName="nameResource" descriptionResourceName="descriptionResource" dataType="custom" template="calendar_v1_calendarLookup" enableCurrentCalendar="true" maxCalendarSelections="1" maxGroupSelections="1" enableGroupSelection="true" enableCurrentGroup="false" parentGroupId="" format="query" />
Plugin Configuration C#
var property = new Property { Id = "propertyId", LabelResourceName = "nameResource", DescriptionResourceName = "descriptionResource", DataType = "custom", Template = "calendar_v1_calendarLookup", Options = new NameValueCollection { { "enableCurrentCalendar", "true" }, { "maxCalendarSelections", "1" }, { "maxGroupSelections", "1" }, { "enableGroupSelection", "true" }, { "enableCurrentGroup", "false" }, { "parentGroupId", "" }, { "format", "query" } } };
Options
Name | Description | Default | Options |
---|---|---|---|
enableCurrentCalendar | When true, enables current calendar selection (represented with an ID of -1). | true | true, false |
maxCalendarSelections | The number of calendars that can be selected. | 1 | |
maxGroupSelections | The number of groups that can be selected. | 1 | |
enableGroupSelection | When enabled, groups can be selected. Group selections will be in the format Group=ID where ID is the integer ID of the group. | true | |
enableCurrentGroup | When true, enables current group selection (represented with an ID of -1). | false | |
parentGroupId | When set to a group's integer identifier, only calendars and groups in the specified group can be selected. | ||
format | When set to 'query', all selected groups/ calendars will be represented with their own query keys. When set to 'csv', all selected groups/calendars are comma-separated in a shared query key. | query | query, csv |