Calendar Settings
When setting up calendars, it is necessary to know the basic terms.
Template
Templates should only be defined by the administrator. A template is a definition of data selections from a specific data module that contains a date condition. The aim is for the administrator to have control over the data that can be displayed in the calendar, mainly because of performance and server overload. At the same time, templates should make it easier for an ordinary user to define data providers for their own needs. Templates serve as a data source for reading calendar data. The administrator defines the data module and the conditions for loading data. Based on the template, the user creates their own data provider and has the option to further extend and refine the selection conditions.
Templates are divided into 3 basic types:
- Online calendar - used to add personal calendars of Exchange accounts.
- Calendar based on data from K2 documents - used to create calendars from K2 documents, e.g. invoices, sales orders, purchase orders, release notes, receipt cards, etc.
- Calendar based on data from K2 documents - anniversary - used to create calendars from K2 documents that are to be repeated periodically in the calendar once a year on a specific day and month, such as employee birthdays, work anniversaries, contract signing anniversaries, etc.
Data Providers
Users select so-called data providers for the calendar. Data providers are created by the user themselves, or they can be defined by the administrator or a person with the right to define various selection levels. A data provider is always based on a template. In the provider, the user can add their own restricting selection conditions to the template.
Access credentials
These are access credentials to online accounts, so-called personal calendars.
Fragments
The calendar can be added to any book as a new page. The display definition of the calendar page is made in fragments in the fragments book.
Rights to Create Calendars
Templates - the ability to define templates is governed by a right that can be found in the User roles - User rights - Rights book under Administrator-Synchronise-Contact synchronization settings for Exchange.
Providers - the ability to define various levels of providers (global, client, user, etc.) is governed by a right that can be found in the User roles - User rights - Rights book under Administrator-Access to security levels.
Providers of calendar dates
The book of data providers for calendars can be started from the My office - Calendar - Calendar data providers tree or by adding function number 1119 to the desktop.
After the book (function) is started, a list of all data providers to which the user has rights opens.

Picture: List of data providers
A new provider is created using the INSERT key; a provider is changed using the ENTER key or by double-clicking with the mouse. The user selects a template for the provider and adds advanced conditions if required.

Picture: New calendar data provider
We confirm and save the provider with the OK button. The user defines the Name and Description of the provider and, depending on the rights settings, also the level of use.
Templates for providers of calendar dates
The book for defining templates can be started from the My office - Calendar - Templates for providers of calendar dates tree or by adding function number 1120 to the desktop.

Picture: Calendar in the tree
After the templates book (function) is started, a book with a list of already created templates opens. The level for which each template was created is shown here.

Picture: List of templates
To create a new template, we use the INSERT key; to change one, ENTER or double-click on the template. To create a new template, it is first necessary to select the template type.

Picture: Selecting the template type
After selecting the template type, we can proceed to defining the template itself. The template can be saved at the Global, Client, Group, User or Company level.
General settings tab

Picture: Provider template - General settings
Description of fields:
Data module |
Selection of the data module. |
Column with event start date |
The date field according to which the events are to be displayed in the calendar. |
Event has terminal date |
Option whether the end date should also be used to display the event, so that the event is displayed as a FROM - TO interval. |
Column with event end date |
If the option to use the end date is checked, the date field that marks the end of the event is defined here. |
Event description column |
Fields of the data module are selected, including linked fields, and are placed in square brackets. Each time a new field is entered and selected, the new field is added at the end, enclosed in square brackets. The user can delete unsuitable fields. |
Method of setting "All day event" |
The setting method can take 2 values:
|
Disable editing, changing, creating new records from the provider and dragging data |
An option that allows or prevents the user from creating, editing or moving records directly from the calendar environment. |
Display settings tab

Picture: Provider template - Display settings
Description of fields:
Use automatic color |
Option whether the data provider should be assigned a color from the automatic palette. |
Event color |
If the Use automatic color option is not checked, the color for the data provider is selected here. |
Filtering calendar data by position in the book tab

Picture: Provider template - Filtering calendar data by position in the book
Description of fields:
Matching column in DM calendar |
A calendar intended for display in a book must have the data module field filled in, through which the data will be filtered for a specific record. |
Source column in the form |
The joining link according to which the record will be assigned |
Advanced conditions tab
The administrator can restrict the template and the data selection by advanced conditions. These conditions are defined in the same way as selections for filtering data. An advanced condition should always be from the first level without using a field link.

Picture: Provider template - Advanced conditions
After pressing the OK key, the template is saved.
Internet calendar settings
The internet calendar settings were created because of the need to provide an open exchange of calendar and scheduling information (tasks and meetings between users) over the internet. It is necessary to keep in mind the updating of calendar data, as individual applications handle the update interval through their own primary settings, which K2 cannot influence.
Before starting to set up the internet calendar, values must be entered in the Internet Calendars WS URL and Internet calendars number IO fields in Client parameters - Other tab - Properties, see Client parameters.
Internet calendars are configured in the tree menu: under My communication - Calendar - Internet calendar settings a form for defining an internet calendar opens. A new record must be created, upon which a form is displayed in which the user, the name of the configured calendar and the events displayed in the calendar are defined. After pressing the Insert key, a code list opens in which the user selects data from calendar providers. After saving, a URL path for client (calendar) applications is generated.

Picture: Internet calendar settings
Outlook Configuration
The defined URL path is entered into Outlook under File - Account settings, where a form opens; you need to select the Internet Calendars tab and create a new record. The New Internet Calendar Subscription window then opens, into which you need to copy the URL path from the internet calendar settings in K2.

Picture: Display of the link between the Outlook calendar and the K2 documents calendar
iOS Configuration
The internet calendar is configured on iOS devices under Settings - Calendar - Accounts - Add account - Other - Add Subscribed Calendar - server, where you paste the URL address defined in the configuration in K2.

Picture: Display of the K2 documents calendar
Android Configuration
The Android system does not directly support synchronization of other calendars, so a third-party utility is needed: install the iCalSync application. The application supports the display of the associated K2 internet calendar; in the iCalSync application, you need to paste the URL path defined in the internet calendar settings in K2 (see picture).

Picture: iCalSync - entering the URL path

Picture: Display of the K2 documents calendar
Questionnaires
Questionnaires are used for systematic collection of information. They are used in many areas, from research and education to marketing, sales or human resources. They can be used to obtain opinions, collect data, or for evaluation or feedback.
The Questionnaires module in K2 allows you to define the layout of your form and then pass it on to respondents to fill in.
A form or survey can be filled in by anyone who has access to K2. However, it can also be available on the K2 web or the K2 e-shop, either subject to login or anonymously.

Picture: The Questionnaires module in the tree menu
My questionnaires
The My questionnaires book displays those questionnaires in which the contact person of the logged-in user is listed as the respondent. These are therefore the questionnaires of the user currently logged in to K2. The book serves for a quick and clear display of the questionnaires that the respondent is to fill in.
By default, only questionnaires that have not yet been submitted are displayed.

Picture: My questionnaires
The questionnaire can be filled in using the Display questionnaire option. After selecting this option, the questionnaire window is displayed for filling in. After answering the questions and pressing OK, the current filled-in state of the questionnaire is saved and the questionnaire will have the In progress status. The questionnaire therefore does not have to be filled in all at once; it is possible to return to it later.

Picture: Form for filling in a questionnaire
Once the user has filled in the questionnaire, they submit it by pressing the Submit option on the selected questionnaire. The Submit option confirms the questionnaire, whereby the respondent indicates that the questionnaire is fully filled in and complete.

Picture: Submit questionnaire
In the ribbon, it is also possible to display questionnaires that have already been submitted, using the Display submitted too option. If the user has the right to unconfirm questionnaires, they can also use the Cancel submission option, which unconfirms the questionnaire and allows it to be edited again.

Picture: Display of all questionnaires in the My questionnaires book
Questionnaires - templates
In the code list of questionnaire templates, it is possible to define individual parts of a questionnaire, which can then be used when creating the definitions of individual questionnaires. They are used for parts that may be common to questionnaires; by inserting them from a template, there is no need to define them in questionnaires again each time. Templates thus make it easier to create questionnaires.

Picture: Questionnaires - templates
Questionnaires - Templates - Basic Data
The Template type is defined in the basic data, i.e. for which part of the questionnaire the template is being created. The Type must be filled in before starting to design the template.

Picture: Questionnaires - templates - Basic data
Templates can be defined for:
- Question - a template used to define only one specific question
- Section - a template for one section, which can contain any number of questions
- Page - a template for one page of the questionnaire, which can contain individual questions or sections with questions
- Questionnaire - a template for the entire questionnaire. This template can be used, for example, for periodically repeated surveys where the questionnaire is always the same or very similar and we do not want to create it again each time.
Questionnaires - Templates - Designer
When entering a new template, the Designer tab is displayed only after the Template type has been entered in the template's basic data. The Designer displays the appropriate options for creating the selected type. The simplest type of template and the basic building block of a questionnaire is the question:

Picture: Designer for a question
The question designer allows you to define one question. A question can be of different types depending on the answer that can be given to it. A new question is inserted using the Add question button. Pressing + on the button expands the choice of question type.

Picture: Insert a new question
A question can also be inserted from the clipboard, if a question has previously been copied to the clipboard:

Picture: Insert a question from the clipboard
For a template of the Section type, individual questions are inserted into the section. The section is thus superior to the questions, and the questions are grouped in the section.

Picture: Designer for a section
A section has the functions
for Renaming the section, Copying the section to the clipboard, which allows it to be subsequently pasted from the clipboard elsewhere, and Setting the section width. The section width is set in columns and can be one, two or three columns. The section width defines the possible width of individual questions within this section.
A template of the page type allows you to define an entire page of the questionnaire, which can consist of several sections made up of different numbers of questions. The page can be Re-named and also inserted from the clipboard, e.g. from an already existing template or questionnaire. Likewise, the page can be copied to the clipboard.

Picture: Designer for a page
A template of the questionnaire type allows you to create an entire questionnaire as a template. Questions, sections and individual pages can be added to this template. If questions are added first and sections only afterwards, the already existing questions will be enclosed in the first added section. Questions, sections and pages can be inserted from the clipboard or from a template.

Picture: Designer for a questionnaire template
Creating Questions and Question Types
Questions can be defined of various types depending on the answer we want to receive to the question. For each question type, it is necessary to define the question text and the question width, which allows questions to be arranged not only one below another but also side by side. As with a section, the width can be one to three columns. Other details on the question may vary depending on the selected question type.
After a question is created in the designer, its preview can be displayed immediately, showing how it will look in the questionnaire itself.
The created question can be Changed, Deleted or Copied to the clipboard using the icons in the picture below:

Picture: Functions for a created question in a template
In questionnaires, it is possible to define questions of the following types:
- Short answer - a short answer question requires a brief written answer from the respondent. It does not offer any preset answer options.

Picture: Short answer - designer

Picture: Short answer - Preview display
- Paragraph - a paragraph question requires a written answer from the respondent, which may be longer. It does not offer any preset answer options. The number of answer lines can be defined.

Picture: Paragraph - designer

Picture: Paragraph - preview display
- Integer number - an integer number question requires an integer answer from the respondent. The number entered in the answer can be limited by a minimum and maximum value and pre-filled with a default value.

Picture: Integer number - designer

Picture: Integer number - preview display
- Decimal number - a decimal number question is used analogously to an integer number question.
- Date - a date question requires the respondent to enter a specific date by selecting it from a calendar. The answer can be limited by a minimum or maximum date, or a default date value can be entered.

Picture: Date - designer

Picture: Date - preview display
- Time - a time question is used analogously to a date question. The respondent enters the time in the hours:minutes:seconds format.
- Checkbox - this question is used when I want to find out whether the respondent agrees with the question asked.

Picture: Checkbox - designer

Picture: Checkbox - preview display
- Multiple choice - the question allows you to define possible answers. When answering, the respondent selects only one of the options.

Picture: Multiple choice - designer

Picture: Multiple choice - preview display
- Checkbox group - the question allows you to define possible answers. When answering, the respondent can select multiple options.

Picture: Checkbox group - designer

Picture: Checkbox group - preview display
- Multiple choice drop-down menu - the question allows you to define answers, but also to enter a different answer if this is allowed in the question. There is only one answer.

Picture: Multiple choice drop-down menu - designer

Picture: Drop-down menu - preview display
- Linear scale - the question allows a selection from a defined range. It can be used, for example, for satisfaction ratings.

Picture: Linear scale - designer

Picture: Linear scale - preview display
- Static text - allows you to insert text that the user wants to display to respondents. It is therefore not a question and no answer is expected.

Picture: Static text - designer

Picture: Static text - preview display
Questionnaire Definitions
In the Questionnaire definitions code list, it is possible to create individual questionnaires, define their structure and design questions. To create a definition, templates can be used for individual parts of the questionnaire or for the entire questionnaire.

Picture: Questionnaire definition
The questionnaire definition can be saved to an *.XML file and also loaded from a file. Loading a definition from a file is possible only in Change mode of the record.

Picture: Loading/Saving the definition from/to a file
Questionnaire Definitions - Basic Data
The Basic data tab contains the characteristics of the questionnaire, i.e. its Abbreviation and Type. A longer specification of what the questionnaire is about can be entered in the description.
Questionnaires can be of three types:
- Questionnaire - the questionnaire is filled in by the respondent; it consists of questions and answers
- Evaluation - in addition to the respondent, the questionnaire will also include an evaluated person, i.e. the respondent can evaluate the selected person
- Test - for a questionnaire of the test type, questions are always created together with the expected correct answer. A questionnaire of the test type can therefore be validated and the success rate of its completion evaluated.

Picture: Questionnaire definitions - basic data
Description of selected fields:
Respondent |
In the respondent section, it is possible to select for whom the questionnaire is intended: only for K2 users, or also for registered e-shop users, or for registered and unregistered users of the e-shop or website. |
Web/eshop |
If not filled in, the questionnaire is available on all websites/e-shops of the company. If filled in, the occurrence is limited by this selection. |
Active from/Active to |
Date-limited validity of the questionnaire.
|
Questionnaire Definitions - Designer
The actual creation and design of the questionnaire takes place on the Designer tab.
A questionnaire can consist of these parts:
- Question - a question is the basic building block of a questionnaire. Questions can be of different types, depending on the answer we expect. Questions can be grouped into sections.
- Section - a section is a cluster of questions that share a common label or topic
- Page - a questionnaire can have one page or be multi-page. The maximum number of questionnaire pages is five.

Picture: Questionnaire definitions - Designer
When a new questionnaire definition is created, the page is empty and ready for designing a new questionnaire. Questions, sections and pages can be created directly in the questionnaire designer, or existing ones can be inserted from the clipboard or from a template using the right-hand side of the insert buttons, as shown in the picture:

Picture: Questionnaire definition - Designer
If questions are inserted first and a section only afterwards, the previously inserted questions are enclosed in the first inserted section. If a section is inserted first, questions can be inserted directly into this section, as shown in the picture below. Another section can be added after this section, and the questionnaire can be built up gradually in this way.

Picture: Questionnaire section
By adding pages, the already existing sections and any questions are moved to this first page. A Name is entered for both the Page and the Section when they are created.

Picture: Add a page to the questionnaire

Picture: Page1 with one section, so far without a question
When creating a questionnaire, it is always possible to display a preview of how the finished questionnaire will look. After entering the first question in the Section, the questionnaire will look like this:

Picture: Designer with one question
The questionnaire preview is displayed after pressing Show preview in the ribbon:

Picture: Questionnaire preview display
Sections and questions have functions for working with these parts. These are the functions Rename, Delete, Duplicate, Copy to clipboard, Move up and down within the questionnaire and Width setting.
The maximum section width is three columns. Within a section, the widths of individual questions are then set, so they can be placed either side by side or one below another.

Picture: Functions for working with a question and a section
Questionnaire Definitions - Questionnaires
The Questionnaires tab displays all questionnaires filled in based on this questionnaire definition.

Picture: Questionnaire definitions - Questionnaires
Questionnaire Definitions - Responses
The Responses tab displays the responses from all questionnaires filled in based on this definition.

Picture: Questionnaire definitions - Responses
Using AI in the Questionnaire Definitions Book
AI can also be used when defining a questionnaire. All functions for working with AI are run on an open definition in change mode. After running, the current form (the Designer page) is deleted and filled with new questions.
These are the following functions, available in the ribbon on the AI tab:
- Design a new questionnaire
- Design a questionnaire based on a document
- Design a test based on a document
- Suggest changes to the questionnaire
Design a New Questionnaire
The function for designing a new questionnaire allows you to create a questionnaire on a given topic using AI. After the action is run, an input form for entering the questionnaire topic is displayed.

Picture: Form for entering the questionnaire topic
After pressing OK on the form, the request is sent for processing by AI, which designs the layout of the form and the individual questions.

Picture: Definition created using AI
On the Designer tab, the designed questionnaire can be displayed in the designer:

Picture: Questionnaire displayed in the designer
After pressing OK, the questionnaire is transferred to the questionnaire definition.

Picture: Questionnaire definition
Design a Questionnaire Based on a Document
The function for designing a questionnaire based on a document allows you to use AI to design a questionnaire based on a PDF document attached as an attachment to the questionnaire definition. After the function is run, the program asks you to select a file from the attachments:

Picture: Questionnaire based on a questionnaire in a document
After double-clicking or pressing ENTER on the selected file, the questionnaire is designed using AI:

Picture: Questionnaire definition based on AI
Design a Test Based on a Document
The function for designing a test based on a document allows you to use AI to design a questionnaire of the TEST type based on a PDF document attached as an attachment to the questionnaire definition. After the function is run, a query about the number of questions we want to have in the test is displayed:

Picture: Test based on a document
After entering the number of questions for the test, it is necessary to select the file on the basis of which the test will be created.
Picture: Selecting a document for creating a test
After pressing OK on the form, the request is sent for processing by AI, which designs the layout of the form and the individual questions.

After pressing OK, the questionnaire is transferred to the questionnaire definition.
Suggest Changes to the Questionnaire
The function allows you to change an existing questionnaire according to instructions. It provides the AI with the current state of the questionnaire and receives a modified questionnaire back.
The instructions can be, for example:
- Add more questions to the questionnaire
- Find and delete duplicate questions
- etc.
After running the function, you need to tell the AI what you want to modify in the original questionnaire.

Picture: Suggest changes to the questionnaire
After pressing OK on the form, the request is sent for processing by AI, which designs the layout of the form and the individual questions.

Picture: Questionnaire modified using AI
After pressing OK, the questionnaire is transferred to the questionnaire definition.
Bulk Creation of Questionnaires
Questionnaires can also be created in bulk, for selected contact persons or employees. The Bulk creation of questionnaires script (QUEST_BulkCreateByDefinition.PAS) is used for bulk creation of questionnaires.
The script can be added to favourites or run over books, where its behaviour will be affected by the place where it is run:
- Questionnaire definitions - when the script is run, the definition is loaded according to the record on which the script is run; creation for contact persons is set by default, but employees (personal cards) can also be selected. It is not possible to create questionnaires for both groups at once. Individual contact persons (employees) for whom the questionnaire is to be created are added using the Add item (INS.) option

Picture: Running the script over a questionnaire definition
In the Contact persons book, records can be marked with an asterisk, filtered, or put into a container:

Picture: Records selected for creating a questionnaire
These selected records are then inserted into the questionnaire creation function using ENTER:

Picture: Selected records for creating questionnaires
After selecting OK , the questionnaires are created in bulk and will then be displayed in the questionnaire definition on the Questionnaires tab. All contact persons for whom a questionnaire was created will have it attached to their contact person and will also see it in the My questionnaires book, where they can fill it in and submit it.

Picture: Questionnaire attached to a contact person

Picture: Newly created questionnaire displayed in the My questionnaires book
- Contact persons - questionnaires are created for contact persons. The questionnaire definition must be selected after the script is run; if it is run in book mode, it is run for the record on which the locator is positioned. The script can be run over records marked with an asterisk, over a filter or over a container. If, for example, we want to create questionnaires for the contact persons of one partner, we can run the script over a filter and the records are loaded into the script directly.

Picture: Bulk creation of a questionnaire over the Contact persons - book, run over a filter of contact persons
- Personnel data - questionnaires are created for employees. The questionnaire definition must be selected after the script is run; if it is run in book mode, it is run for the record on which the locator is positioned. The script can be run over records marked with an asterisk, over a filter or over a container.

Picture: Running the script in book mode - for one record
After pressing OK , the questionnaire is created and attached both to the employee and to the employee's contact person. The employee will then again see it in the My questionnaires book, where they will be able to fill it in and submit it.

Picture: Personal card - questionnaires
Questionnaires
The Questionnaires book contains questionnaires already filled in by individual respondents.

Picture: Questionnaires
Questionnaires - Basic Data
The basic data tab stores information about the type of questionnaire, who filled it in and from what source.

Picture: Questionnaires - basic data
Description of selected fields:
Questionnaire definition |
Information about the questionnaire definition on the basis of which the questionnaire was created. |
Resource |
|
Participants |
|
Respondent |
The respondent is always displayed on the questionnaire. This is the person who fills in the questionnaire. They are selected from the Contact persons code list. The questionnaire will also be automatically attached to this contact person on the External Documents and Documents (9th Page)/Questionnaires tab. |
Evaluated person |
The evaluated person is displayed on the questionnaire only if it is a questionnaire of the Evaluation type. They are selected from the Contact persons code list. The questionnaire will also be automatically attached to this contact person on the External Documents and Documents (9th Page)/Evaluation tab. |
Attached record |
Apart from the contact persons in Participants, the questionnaire can also be attached to another record in K2. The record can be selected in this field. |
Type |
Selection of the document type to which the questionnaire will be attached. |
Record |
Selection of a specific record of the chosen document type. |
Questionnaires - Questionnaire
The Questionnaire tab contains the questionnaire itself as filled in by the respondent.

Picture: Questionnaires - Questionnaire
Questionnaires - Responses
The Responses tab displays the responses to the questionnaire in row form.

Picture: Questionnaires - Responses
Questionnaires - responses
The Questionnaires - responses item book contains all responses from all questionnaires and can be used for filtering and evaluation according to various conditions.

Picture: Questionnaires - Responses