NOTE: Connector web part is not available in O365.
Calendar Connector web part allows you to establish master-detail connections between one or more calendar web parts located on the same page or on different pages. The web part has no user interface and can be safely hidden on the page.
The web part settings allow you to define the following:
- Parameter name – incoming parameter name, usually corresponding to Query string parameter name of the master calendar.
- Connections – specify one of more child calendar connections
- Parameter name - specify the address bar parameter name of the child calendar. You can get this value by performing any action on the calendar, such as clicking on one of the views and then examining the value of the address bar, after the question mark and before the “equals” sign. It will usually take the form of [ZoneID]_[ZoneIndex], such as Right_0.
- Calendar type – the desired calendar type, such as Day
- Add/Update – depending on whether you want to save a new connection or edit an existing one. You need to click on Edit on the connection’s row to enter edit mode first.
Note: you need to specify external connection parameters of the master calendar as well, as described in the View Settings of the main web part.
Sample Configuration
In your site create two pages:
- Main page (you can use the existing default.aspx page)
- Details page (create a simple web part page in one of the document libraries, save the full page URL for later use).
On the Main page place a calendar in Compact view and connect it to data. In external page settings specify the Details page URL, a parameter name (e.g. dayview). You can also choose to open the details page in a new window.
On Details page place two calendars, one will show the full month view, while the other shows the day view. Also place the Calendar Connector under one of the calendars. Connect both calendars to data.
Click on view change button on both calendar and make note of the address bar parameter each of them sends. Note that the parameters must be different from one another.
In the Calendar Connector, enter the parameter name (dayview) in the first textbox. Enter the parameter of the month view calendar and select Month view. Press Add.
Enter the parameter of the day view calendar and select Day view. Press Add.
Save settings.
You may also want to connect the month view calendar to the day view calendar on the same page. In the view setting of the month view calendar enter the URL of the current page in the External page URL field and the parameter name of the day view calendar. Save settings.
Now you will be able to click a day on the Main page calendar. You will see the month and day data on the details page. You can also click on a day in the month view to show it in the day view side by side.