Book Contents

Book Index

Calendar

The Calendar module is used for a clear display of events. It allows managing and connecting online private and work calendars together with the IS K2 document calendar in one place.

The calendar allows you to:

Events are displayed in the calendar by the date and time they take place. By default, the calendar is displayed in the monthly overview of the current year. You can switch to the weekly or daily view.

Main calendar

In the main calendar, we distinguish two types of calendars:

Screen description:

pic_3540_202411

Picture: Main calendar

Description of functions in the toolbar:

pic_10287i

Clicking this button displays a list of all displayed calendars. The individual calendars (data providers) are distinguished by colour in the calendar.

pic_5332_202109

Picture: Displayed calendars

For each calendar, you can:

  • temporarily suppress the display – the provider's events will not be displayed in the calendar,
  • define the display colour of events,
  • define a parent calendar - this defines the tree structure of calendars.

pic_1703512

Picture: Calendar settings

 

A provider can be deleted from the menu; its data will then not be displayed. Likewise, we can add the provider again at any time.

Note:

  • If a Provider of calendar dates - is deleted, the displayed calendar is automatically deleted and the user is informed about the change.
  • If a Template of the provider of calendar dates - is deleted, the problematic calendar is set as suppressed and events will not be loaded from it. The user is informed that a valid template must be set in the provider and then the suppression must be cancelled.

pic_10288i

Sets the calendar to today's date.

pic_10289i

If someone makes changes in the calendar, the calendar can be refreshed and updated with the pic_10289i button.

New event in the calendar

A new event is created by right-clicking the selected date in the calendar.

Procedure:

  1. Right-click the required day or time.
  2. Select the New event option.
  3. Select the data provider (e.g. Activities).
  4. The form for creating a new activity opens.
  5. After the activity is saved, the event is immediately displayed in the calendar.

Clicking an existing event opens the form of the respective record according to the data provider.

The date and time of an event can be changed directly in the calendar:

These operations may be restricted by the settings of the Data provider template. The template can prohibit:

Events that have Display as all-day events (without time) set are displayed in the calendar as a rectangle, whereas events with a specified time are displayed with a dot.

pic_5333

Picture: Events in the calendar

Book Contents

Book Index

Calendar view types

The calendar can be displayed as:

For the weekly and daily calendar, two areas are displayed - an area for all-day events and an area for from/to events.

pic_107385

Picture: View type - Month

pic_107386

Picture: View type - Week

pic_107387

Picture: View type - Day

Book Contents

Book Index

Drag and drop in the calendar

The calendar has two areas with events:

All draggable events in the calendar can be dragged between these areas, which gives us 4 variants.

1. Dragging an all-day event to the all-day events area

1_allday_to_allday

Picture: Dragging an all-day event to the all-day events area

2. Dragging an all-day event to the from/to events area

2_allday_to_fromto

Picture: Dragging an all-day event to the from/to area

3. Dragging a from/to event to the from/to events area

4_fromto_to_fromto

Picture: Dragging a from/to event to the from/to area

4. Dragging a from/to event to the all-day events area

3_fromto_to_allday

Picture: Dragging a from/to event to the all-day events area

Besides dragging events, it is also possible to stretch/shrink them in the calendar (i.e. change their duration). There are two options:

1. Stretching a from/to event

2. Stretching an all-day event

Warning: For these moves to work correctly, the field with the event end must be set in the template of the provider of calendar dates and the Event has terminal date option must be checked!

Book Contents

Book Index

OAUTH authorization settings

The Edit OAUTH authorization settings button

If the user uses an e-mail mailbox on Office365, it is necessary to log in to this service using the OAUTH protocol. This means that the administrator must create a new application for K2 in the Microsoft Entra service and grant it access to Office 365 Exchange Online. For this application, the administrator obtains the ClientID, ClientSecret and TennantId values and enters them in this form.

pic_7666

Picture: Edit OAUTH authorization settings

Description of fields:

UseOAUTH

Checking the field switches on the use of the OAUTH protocol.

ClientID, ClientSecret, TennantId

The administrator obtains the values required for authorization after creating a new application in Microsoft Entra ID.

Book Contents

Book Index

Procedure for creating a new application in Microsoft Entra ID

pic_10334

pic_10335

pic_10336

pic_10338

pic_10339

pic_10340

pic_10341

pic_10342

pic_10343

Personal calendar

Data from Exchange calendars can be displayed in the calendar. A new provider through which the data will be displayed is added using the pic_769i_2021 button. Fill in all fields in the form. Using the Verify connection button, we check whether the connection of the personal calendar to the main calendar was successful. If you have an e-mail mailbox in Office365, it is necessary to configure access using the OAUTH protocol.

pic_3543_2021

Picture: Detail - creating a new personal calendar provider

Basic data - description of fields:

User name

User name

Password

Password

Email address

Email address

MailBoxServer

Mailbox server (for Office365 it is the value https://outlook.office.com/ews/Exchange.asmx).

ContactPersonId

Surname of the contact person to whom the personal calendar belongs.

For communication with the Exchange server, IS K2 uses an external library that must be registered on the workstation in use. If the error "K2OnlineCalendarProvider.DLL - is not installed or registered!" is displayed after pressing the Verify connection button, this library is not registered on the workstation in use.

pic_10330

Picture: Error when verifying the connection

Registration of the K2OnlineCalendarProvider.dll library

For registration, it is necessary to run the command c:\Windows\Microsoft.NET\Framework\v4.0.30319\RegAsm.exe [path to the IS K2 directory]\k2onlinecalendarprovider.dll (to run this command, it is necessary to have administrator rights).

If K2 does not find the registered library, automatic registration of the library starts. Administrator rights are required for automatic registration. A Windows dialog requesting administrator approval pops up. If this dialog is not approved and the registration does not take place, the calendar is suppressed and the user is informed that they must register the library and cancel its suppression. After the suppression is cancelled, the automatic registration starts again.

After saving, the personal calendar is displayed among the other calendars; alternatively, the Personal calendars button can be used to display a form listing all personal calendars.

pic_3542_2021

Picture: List of personal calendars

A new event (which will be synchronized) is added to the personal calendar by right-clicking the selected date. A menu then appears in which we select New event and choose the required personal calendar. A simplified form is then displayed in which the Subject of the event, location, time and date can be edited, and the event description can also be filled in.

pic_3546_2021

Picture: New personal calendar event

The form header states the personal calendar in which the event will be saved.

Basic data - description of fields:

Subject

Name of the event

Place

Place

Start date / time

Start date and time of the event

End date and time

End date and time of the event

All day event

Flag indicating whether it is an all-day event.

Event text

Detailed description of the event

If it is a recurring event in a series, a form is displayed before the event editing form opens, in which you can choose whether to edit Only this occurrence or The entire series.

pic_5334

Picture: Editing a recurring event in a series

K2 calendar

In the Web K2 environment, the user can select K2 calendars only from an already defined list. Providers of K2 calendar dates are created in IS K2 from the full K2, as described in the chapter Providers of calendar dates. The description of these calendars should be named appropriately so that the user knows on the basis of which data and restricting conditions the calendar is created and whether it is intended for the main calendar or a K2 book.

The K2 calendar can display any header record stored in IS K2 whose data module has a meaningful date field, thanks to which it will be possible to define a template, or a provider of calendar dates.

pic_3544_2021

Picture: List of calendars based on K2 data