Book Contents

Book Index

Basic Functions

Book Contents

Book Index

Filters Alt+F9

In K2, filters represent an important part of working with data, whether it is active work (inserting, changing data) or any kind of evaluation.

The concept of a Filter generally represents a set of data of a table restricted according to defined criteria. This means that if we work directly with the data (the filter is not activated), we see all records, and inserting a new record means physically creating a new document. However, if we activate the filter, the displayed records are restricted to a certain set of data. Inserting a new record then means selecting from already created records and inserting them into the selected records of the filter.

There are 3 possible states in K2: Book, Container, Filter

Book

In the book, the data are sorted by the primary key (for documents Book - Business year - Number, for Articles Abbr1, etc.). If the documents are divided into books, only the data of one book are displayed! Switching between books is usually done with the Alt+F10 key.

Container

The most common state for evaluation. Records can be selected into this filter from all data of the given table according to any criteria.

Filter

Records meeting the defined filter conditions are displayed. If we have created a filter, we can delete any records in it using the Delete key.

Quick entry of filter conditions (Fast filter)

It can be run on books of purchase/sale. The function allows you to enter conditions for the Series and the Customer. After it is run, the documents meeting the entered conditions are filtered.

Keyboard shortcuts for switching between states:

Shift+F9

Switches to the Book state.

Alt+F9

Switches to the Container state.

Ctrl+F9

Opens the dialog for quick entry of filter conditions (Fast filter). After it is run, we switch to the Filter state.

Ctrl+Shift+F9

Opens the dialog for entering filter conditions. After it is run, we switch to the Filter state.

To work with filters, we can use not only the function keys listed above. We can also use the options displayed when pressing the right mouse button in the bottom corner of the screen. After clicking the filter icon, we can use the Factory filters, Filter management options, enable the Column filter or Add/remove filter condition.

pic_867_UI.png

Picture: Filter options menu in the Invoices out book

Marking records

Stars

Records in the book can be marked using asterisks. This function is important for bulk actions and for printing.

Note: When a record is marked, the Star icon is displayed in the 'S' column.

Asterisks can be added and removed in three ways:

pic_317_UI.png

Picture: Stars and tabs in the Invoices out book

The current number of asterisks is shown in the status bar at the bottom of the screen. If no item is marked, this number is missing.

Note: If the user first marks records and then changes the DM state (switching between the book/container/filter states), there may be a discrepancy between the total number of marked records and the number of marked records displayed in the table.

When you exit the program, the asterisks are automatically deleted.

If there are records marked with an asterisk in the book, the program behaves the same way when printing an RPM or AM report as when it is run on a filter.

Book Contents

Book Index

Creating a Container/Filter from Marked Records

We can create a Container from the marked records. On the marked records, we press the Ctrl+Shift+Alt+F9 keyboard shortcut. The "Container operations" form is displayed, offering two options:

pic_4690_UI.png

Picture: Running the "Container operations" function

In the Target field, we choose whether we want to create a container or a filter.

Note: If the Filter option is selected, the check boxes for the container are hidden because they have no meaning for a filter (a new filter is always created).

Book Contents

Book Index

Saving/Loading a Container

Every user can create backups of the container contents. The function can be run from the module menu Container - Load / Save container. The displayed form offers the user the saved (and named) container backups and functions for managing them.

pic_11021

Picture: Load / Save container menu

We save the contents of the current container to a named backup using the New (Ins) function - we name the record and save it (F2). This creates a backup of the container contents for the given user, to which they can return at any time.

pic_11022

Picture: Saved backup of the container contents "Invoices to be checked"

A backup is loaded by placing the cursor on the required record and using the buttons in the ribbon:

A saved container backup can also be shared with other users (in the displayed Users book, with the user currently selected by the cursor or with several users marked with asterisks) using the Move or Copy functions.

When the container backup is no longer needed, it can be removed using the Remove function.

Book Contents

Book Index

Other Containers

In IS K2, multiple containers can be linked to each other using links from other modules.

Containers

The function is available via pic_1073i by selecting the Container option.

Example: We want to filter all invoices out that relate to specific release notes.

This selects into the container of invoices out all invoices that are linked to these release notes via sales orders.

Note: In the Add/Delete to/from other container book, "Attached docs" refer to document attachments. The so-called "Sale Items" relate to the Document items tab.

The main advantage of this procedure is above all the speed of creating a container from another module. In the same way, for example, all customers for whom the given invoices are issued can be selected from the invoice container into the Suppl./Cust. container, or a container of all invoices paid by these documents can be created from a container of cash and bank documents, etc.

Filters

Another way to use the container of another module is to select another container from the filter conditions Ctrl+Shift+F9.

Example: We want to find out which release notes were used to release a specific article.

The filter of release notes then displays all release notes that have an item of the searched article on the Sale Items tab.

Example: We want to create a filter/container of all activities of companies from Brno.

We can then create a container (Container - Create) or a filter (Filter) of all activities of the selected companies from Brno.

Book Contents

Book Index

Filters

In K2, in addition to filtering with Alt+F9, the user can easily create custom selections of the data they want to work with. Using SQL queries, working with data is much faster, simpler and more flexible.

Filters can be created in the following ways:

  1. On the List tab from a record field.
  2. On the document card from a specific field.
  3. On the "grid" of the document card - filled or empty.
  4. From the conditions form.
  5. From the filter menu.

Note: The individual ways of creating filters are described in more detail in the chapter Creating Filters (including examples).

The program remembers the defined filter even after leaving the given book. If we have created a filter, we can delete any records in it using the Delete key.

For working with filters, we can define operations in large tables (for a more detailed description, see Client parameters - page 1, the Properties button) and set some form properties in User parameters.

Filters can also be included in a batch in the window for running reports and scripts (F9).

Filters - Conditions

If we press the pic_830i icon, the menu of saved filters and the menu of options for working with them are displayed.

pic_1039_UI.png

Picture: Expanded filter menu in the Sales Orders book

Description of the Filter menu:

Factory

 

Displays the preset factory filters.

Add condition/remove condition

Shift+Ctrl+F9

Adds/removes another condition to/from the current filter.

Column filter

Ctrl+Alt+F

Turns the column filter on/off.

Filter administration

Shift+Ctrl+Alt+S

After opening the Administration menu, the form for filter management is displayed.

Turn off

 

Turns off the active filter.

Description of the Container menu:

Insert selected into container

Shift+Ctrl+Alt+F9

Inserts the marked records into the container (the table will be in the Container state).

Add

Insert

Adds the records from the current filter to the container.

Delete

Delete

Deletes records from the container (the table in the Container state).

Note: Create, Add and Delete have the same functionality as the buttons in the Filter form (see chapter Conditions Tab).

Filters - RIGHTS

Level Global, Client, Group

Saving configuration objects depends on the user's rights, which can be found in the User roles book. This is the Administrator - Access to settings level right.

Definition of Filter Conditions

To add a condition to the filter, we can use the following options:

pic_7321

Picture: Add condition to the filter

In the Condition form, we define the values for filtering.

pic_7322_202407

Picture: Simple form for entering a filter Condition

Description of fields:

Data field

The data field on which the condition is created.

Operator

Depending on the selected operator, the fields in the form or their accessibility change. In the Operator field, you can select:

Is equal

Records that exactly match the defined value are filtered.

Not equal

Records that do not match the entered value are filtered.

Less

Records whose value is less than the value entered in the form are filtered.

Less or equal to

Records whose value is less than or equal to the value entered in the form are filtered.

Greater or equal

Records whose value is greater than or equal to the value entered in the form are filtered.

Greater

Records whose value is greater than the value entered in the form are filtered.

Contains

Records that contain the entered value are filtered.

Does not contain

Records that do not contain the entered value are filtered.

Begins with

Records that begin with the entered value are filtered.

Does not begin

Records that do not begin with the entered value are filtered.

Matches

Records that match the entered value are filtered.

Does not match

Records that do not match the entered value are filtered.

Is empty

Records whose value is empty are filtered.

Is not empty

Records whose value is not empty are filtered.

Between

Records that fall within the range of the entered values are filtered.

Not between

Records that do not fall within the range of the entered values are filtered.

In list

Records that correspond to the entered value are filtered.

Not in the list

Records that do not match the entered value are filtered.

 

Value

In this field, we write the "value" by which the condition should filter the records. If the value string does not contain an asterisk (as a wildcard), the records that exactly match the entered value will be included in the filter.

Enter value at start

If this field is checked, a form is displayed each time the filter is run, in which we can modify the condition (e.g. date from - to).

Add only

After pressing the Add only button, the condition we created is only added to the list; the records are not filtered by the entered value.

Edit

The Edit button opens the filter definition form, in which the filter can be edited or saved.

Container

After pressing this button, the records matching the entered conditions are inserted into the container (the table will be in the Container state).

Filter

Filters the records according to the specified condition.

Cancel

The Cancel button cancels the filter condition we have entered.

Using the pic_1187i icon in the table header, you can preview the individual conditions contained in the filter.

pic_7323

Picture: Display of filter conditions

Description of the icons in the filter table header:

pic_1188i

Make the condition valid/invalid.

pic_1189i

Delete the condition.

pic_1190i

Change the condition.

pic_1191i

Add a condition to the filter.

pic_1192i

Filter menu.

pic_1193i

Update the filter.

pic_1194i

Run.

Filter Conditions Tab

pic_1034_UI_202407

Picture: The Filter conditions tab

On this tab, we can add, copy, suppress, change, delete or change the position of a filter condition. To work with conditions, you can use the icons in the table header or the keys Insert (insert), Delete (delete), F4 (suppress/activate a suppressed condition).

The following icons are used for working with filters:

Pic_1031i

After pressing this icon or the Insert key, a form for selecting the condition type is displayed.

pic_1035_UI

Picture: Form for selecting the filtering condition type

 

Comparison condition

Double-clicking the left mouse button or pressing the Enter key on the Comparison condition item displays the Field selection form. After selecting the required field, the form for defining the condition opens.

 

Other filter

Double-clicking the left mouse button or pressing the Enter key on the Other filter item opens the form for defining the other filter condition.

 

 

Selects documents from the submodule of another data module. Other filters make it possible to use filters defined for data module A in data module B, which contains a link to A.

 

pic_2111_UI

Picture: Form for defining another filter

 

Submodule condition

Double-clicking the left mouse button or pressing the Enter key on the Submodule condition item opens the form for defining this condition.

 

 

Selects documents from the data module based on a comparison of the condition value with the value of a field of the submodule.

 

pic_2112_UI

Picture: Form for defining a submodule condition

 

Uncontrolled SQL query

Double-clicking the left mouse button or pressing the Enter key on the Uncontrolled SQL query item opens the form for defining the condition

 

 

It is used to define custom conditions written in SQL.

 

pic_1036_UI

Picture: Form for defining an uncontrolled SQL query

 

Nested condition

Double-clicking the left mouse button or pressing the Enter key on the Nested condition item opens the form for defining this condition.

 

 

We insert conditions into the form, between which it is possible to switch the operator "or" and "and".

The "or" operator means that the selection will be created from records that meet at least one of the conditions.

The "and" operator means that the selection will be created from records that meet all inserted conditions at the same time.

 

pic_3071_UI

Picture: Form for defining a nested condition

 

Records from container

Double-clicking the left mouse button or pressing the Enter key on the Records from container item opens the form for turning on the container.

 

 

Restricts to an already existing container in the same data module as the filter being created.

 

pic_2113_UI

Picture: Form for selecting records from a container

 

Current companies

Double-clicking the left mouse button or pressing the Enter key on the Current company item opens the form for defining this condition.

 

 

"Filters out" the records related to the company currently set in the K2 system.

 

pic_3354_UI

Picture: Form for selecting records for the current company

 

Fulltext condition

Double-clicking the left mouse button or pressing the Enter key on the Fulltext condition item opens the form for defining this condition.

 

pic_7329

Picture: Form for entering a fulltext condition

 

Elasticsearch condition

This condition requires Elasticsearch indexes to be set up in IS K2. It then enables fulltext search including inflection, use of synonyms, detection of typos and sorting of results by relevance.

The defined filter conditions can be displayed in the table header.

pic_7508

Picture: Display of filter conditions in the table header

The Filter button contains the following options:

Filter

Ctrl+Enter

After pressing the button, the defined filter is run.

Create container

Alt+V

After pressing this button, the records matching the entered conditions are inserted into the container (the table will be in the Container state).

Add to container

Alt+P

Pressing the button adds the records matching the conditions entered in the Filter to the container (the Container state).

Delete from container

Alt+O

This button deletes from the container (table in the Container state) the records that meet the defined filter conditions.

Reduce container

Alt+E

After pressing this button, all records that do not meet the entered filter conditions are deleted from the container (table in the Container state).

Set conditions only

 

This button only sets the conditions; the filter is not run.

List of data fields

When defining conditions, we select a field from the list of data fields. If there is a pic_963i icon in the "L" column of a field, the field has a link to another table and its fields. If we click this icon, a list of these fields is displayed and another tab is created in the lower part of the Filter form. With each further nesting level, a new tab is displayed. (With more extensive nesting, arrows for scrolling through the tabs are displayed next to them.) If we click another node, the nesting and therefore also the tabs change according to the newly selected one.

When the cursor bar is on one of the fields, we can also search for a specific item in the list by typing the beginning of the field name, and the cursor bar moves accordingly to the closest match. The field name is searched in the column in which the cursor bar is positioned. (Nested fields are not taken into account during the search!)

In the "Field Cost Glyph" column, the individual data fields are distinguished by colour:

 

Calculated field. It is evaluated on the client.

 

Physical field. It is evaluated on the server.

 

Physical field with an index, and therefore the most suitable field for searching. It is evaluated on the server.

It is therefore best to use a condition on a physical field with an index (dark green), or a condition on a physical field (light green). And if we want to use a condition on a calculated field (orange), then preferably in combination with one of the previous ones (a "mixed condition"). Based on the selected condition, the Evaluation location field on the Filter. tab of the filter is filled in.

Condition

Pressing the Enter key or double-clicking the left mouse button on the selected filter condition opens the Field form, in which the condition definition can be specified in more detail.

pic_7326

Picture: An open Filter condition

Description of selected fields:

Data field

The data field on which the condition is created.

Operator

Depending on the selected operator, the fields in the form or their accessibility change. Besides mathematical operators ("equals", "greater than", etc.), we can filter using other comparison operators:

  • contains - the condition will filter records that contain the string entered in the Value field,
  • between - we define the interval of the resulting filter (e.g. a date),
  • in list - the list is an enumeration of values entered in the Parameters field,
  • empty - the field being filtered is empty (it has no value filled in, e.g. a confirmation date that is usually zero).

Value(s)

In this field, we type the "value" according to which the condition is to filter records. If the value string does not contain an asterisk (as a wildcard), the filter will include records that exactly match the entered value.

Value type

In this field, we select the type of the entered value:

  • Value - set by default. Evaluates according to the value entered.
  • Expression - before the filter is run, the value of the used expression is evaluated once and the result is substituted as the actual value for filtering.
  • Data field - in this case, the value is the identifier of a data field.

The check boxes change according to the selected data field or filtering operator:

Suppress condition pic_1188i

If the field is checked, this condition will not be accepted during filtering.

Enter value at start

If we check this field, then every time a filter containing a condition with this check is run, a form is displayed in which we can modify the condition (e.g. date from - to).

For the value types "Value" and "Expression", we can in the form:

1. change the parameter value that will be used when the filter is run. For the value type "Value", the modified value is remembered and offered to the user the next time the filter is run as well. For the value type "Expression", the value obtained by evaluating the expression is always offered.

2. "Suppress" (or, conversely, "Enable") the condition before running, using the F4 key

For the value type "Data field", the condition can only be "Suppressed" or "Enabled" using F4.

By reference

If we select "<>", "=" or "in list" as the filtering operator, we can switch (for fields where this is possible, e.g. book, period, etc.) the input method between a direct value (number, ID) and a reference value (Abbreviation), which is much more efficient in terms of performance.

Entry by reference requires an existing value, so it is not possible to enter a non-existent abbreviation or number/ID. If this happens, the suffix "<--" indicating an incorrect value is added to the parameter and the condition cannot be saved.

Wildcards

If we select "contains" as the filtering operator, we can use wildcards when entering the value in the Parameter if we do not know the whole name (e.g. if we want to filter by the Description field).

This field will be checked automatically if the Apply wildcards field is checked in User parameters - Environment - the Other options button - Search field.

Wildcards can be turned off only if the Where field is set to Exactly.

If the Where field is set to Anywhere or At the beginning, these characters cannot be turned off in the form.

Case sensitive

When this field is checked, upper and lower case letters are taken into account in the filtering conditions. This means that if we enter a description in the condition that does not exactly match the searched text, the records will not be included in the filter.

Compare including time

The field is accessible when a data field of the "DateTime" type is selected. If this field is checked, the values are compared including time; if it is not checked, only the date without time is compared.

Note: If we create a filter to select records where the text begins with an "_" underscore, in the condition definition we type _ in the Value field and select Begins with in the Operator field (see the picture below).

pic_2848_202407

Picture: Definition of a condition for searching for text beginning with "_"

We confirm the modified filter condition with the OK button and run the filter with the modified condition with the Filter button.

Filter properties tab

pic_1037_UI_202407

Picture: Form for defining the name of the filter being created - the Filter properties tab

Description of fields:

Name

The filter name entered by the user (it will be displayed in the filter menu after pressing pic_830i). This field is mandatory when saving.

Description

A more detailed description of the filter.

Run again on refresh (F3)

If this field is checked, pressing the F3 key automatically reruns filtering according to this filter.

Check the record access group

Checking this field tests whether the user has the right to the selected record. By default, this field is unchecked.

Display also suppressed conditions at start

Suppressed conditions are also offered before the filter is run.

System conditions

These conditions cannot be changed by the user; they are defined by the system.

Create filter

On the List tab

  1. By pressing the right mouse button in a record field, we open a menu from which we can create filters or add conditions to existing filters.
  2. After selecting one of the options, the comparison condition form is displayed (for a more detailed description, see Definition of filter conditions).

pic_1149_2023

Picture: The menu opened after pressing the right mouse button

From the document card:

  1. By pressing the right mouse button in any field, we open a menu from which we can create filters, add conditions to existing filters or add the selected field to the columns displayed on the List tab.
  2. After selecting one of the options (Create filter or Add condition), the Condition form is displayed (for a more detailed description, see Definition of filter conditions).

pic_1153_UI.png

Picture: The menu opened after pressing the right mouse button - the Create filter option

From the item form:

A filter from the item form works similarly to a filter from the document card. The filter is started by pressing the right mouse button on any field of the item form. In most forms, the menu contains Create filter and Add condition. In some, the menu additionally contains the Add to columns option.

pic_7331

Picture: The menu opened after pressing the right mouse button on a sale item

From the "grid" of the document card:

We create a filter or add a condition on the document "grid" by pressing the right mouse button on an item in the required field and choosing the Create filter or Add condition option. In the same way, a filter can be created or a condition added on a "grid" that contains no items. We press the right mouse button anywhere on the "grid". A condition on the field whose column is currently active is then prefilled in the filter definition.

From the filter menu:

  1. By pressing pic_301i next to the pic_328i icon, we open the filter menu and select Create filter.
  2. The comparison condition form is displayed (see Condition).
  3. By pressing pic_018i.png, we open the menu of Data field conditions.
  4. By double-clicking the left mouse button (or with the Enter key), we insert the selected condition into the Data field (for more on working with conditions, see the chapter Conditions tab).
  5. We select the filtering operator and, if applicable, check other settings.
  6. After pressing the Filter button, a filter is created in the book according to the entered conditions.

Example - Filter from the List tab

We want to create a filter of articles that have more than 100 in the Available column.

pic_1154_202407

Picture: Condition form with prefilled values

Example - Filter from the document card

We want to create a filter of reservation lists that have a reservation date as at 12.10.2020.

pic_1155_2023

Picture: Condition form on the Reservation field

pic_1156_2023

Picture: Completed Condition form for the reservation end date

If we wanted to create a filter of reservation lists whose reservation end date is, e.g., in the range from 14.6.2020 to 25.6.2020, we select "between" as the filtering operator in the condition and enter the required dates in the Value from and Value to fields.

pic_7332

Picture: Completed Condition form for the range from 14.6.2020 to 25.6.2020

Example - Filter with an expression

We want to create a filter of purchase orders that were issued in the past fourteen days.

pic_1152_2023

Picture: Filling in the comparison condition fields for a filter of orders issued in the past 14 days

Example - Filter with an expression for a date condition

To make it easier to build an expression, the Wizard button is available, which can build the most frequently used expressions.

The Wizard can also be opened using the button located in the condition definition form in the Value field next to the drop-down arrow.

pic_2199_2023

Picture: The Wizard button on the condition definition form and the Wizard form

For example, if we want to build an expression that returns the invoice issue date as the last day of the following month, we fill in:

The Expression field contains the required expression, and the current value is displayed above it.

pic_2153_2023

Picture: Form for completing the value of a condition of the "Expression" type - a defined condition

Example - Filter from the item form

We want to create a filter of invoices out that contain items of the Food type.

pic_2268_2023
Picture: Field menu opened after pressing the right mouse button

Example - Filter from the conditions form

We want to create a filter of release notes issued in the period from 01.06.2015 to 31.08.2015 for the company OMEGA s.r.o.

  • in the Operator field, we select "between",
  • in the Value field, we fill in the required dates - from "01.06.2015" to "31.08.2015",
  • with the OK button, we save the condition to the Filter.
    • Now we add another comparison condition on the company. Using the pic_1191i button, we select Comparison condition. We select the Company field:
  • into the Value(s) field, we insert "OMEGA s.r.o." from the opened book of companies,
  • with the OK button, we save the condition to the Filter.

pic_1157_2023

Picture: Conditions form with an open comparison condition (filter for the company OMEGA s.r.o.)

Example - Filter with another container

We want to filter all invoices of selected customers for which no payment has been made (i.e. invoices whose Paid in full on date is zero).

pic_1150_2023

Picture: Open menu of possible other containers of invoices out

pic_9733

Picture: Filter condition definition - Exists in container

pic_9741

Picture: List of invoices out

The created filter can be printed in the standard way (in our example with the List of invoices report sorted by supplier/customer).

Example - selection with a cross selection

We want to select all sales orders whose customer has "Tesco" in its abbreviation.

pic_9742

Picture: Definition of a condition on a field - Customer Tesco

pic_9743

Picture: Saving the filter - Tesco

pic_9744

Picture: Saved filter - Tesco

pic_9745

Picture: Customer exists in the Tesco filter

pic_9746

Picture: Condition in the filter - Other filter

Example - Filter by a field from another book

We want to create a filter of sales orders that have a gross amount higher than CZK 50,000 and whose customer is located in any part of Ostrava.

pic_1145

Picture: Defined condition for the gross amount filter

pic_1040_2023

Picture: Defined condition for the filter of all parts of the city of Ostrava

  • Pressing OK runs the filter according to the entered conditions.

The created filter can be saved to the filter menu. We can also print the filter in the standard way (e.g. with the List of sales orders report).

Example - selection with a submodule condition

We want to select all invoices out on which an advance has not yet been deducted.

pic_2116_UI.png
Picture: Open menu of possible submodule conditions of invoices out

pic_2119_UI
Picture: Open menu of possible comparison conditions of the Advances - Deduction submodule (Deduction)

Independent submodule conditions

We want to select all sales orders that contain an item with the article "MILKA" and do not contain an item with the article "VÍNO".

pic_2165

Picture: Defined condition for the filter of articles containing "Milka"

pic_2166

Picture: Filter conditions form with a defined condition, selection of a submodule condition

Picture: Form with the list of submodules of sales orders

pic_2168
Picture: Filter conditions form with a defined condition, selection of a comparison condition

pic_2169

Picture: Defined comparison condition for articles containing "Víno"

pic_2170

Picture: Form with the defined filter conditions for articles

Example - Filter with a nested condition

We want to select all items of payment documents of the "bank statement" or "cash document" type whose items are of the type invoice in, invoice out, received advance or provided advance.

pic_3072
Picture: Defined condition for the filter of the cash document item type

pic_3073
Picture: Defined condition for the filter of the bank statement item type

Note: Conditions in filters are arranged in a tree structure; conditions at the same level belonging to the same node are evaluated either with "AND" (necessary conditions) or with "OR" (sufficient conditions). At the top level, conditions are always evaluated with "AND". Further levels (nesting in the tree) can be created using a condition of the "Nested condition" type, for which the evaluation method can now be set to either "AND" or "OR".

Example - Records from container

From the container of sales orders for the customer AB Group, we want to select all sales orders from 2009.

pic_2121
Picture: Defined condition for the period filter

pic_3668

Picture: Defined condition for the period filter with the By reference option checked

pic_2122
Picture: Filter conditions form with defined conditions

Example - comparison of fields from the same data module or even via a link

We want to create a filter of sale items where the stock price from the sale items is greater than the stock price in the article.

  • in the Filtering operator field, we select "greater",
  • in the Value type field, we select "Data field",
  • we expand the Value(s) field and in the list of fields find C_Zbo (Article No.) and via its link SkC (Stock price). The value field will then contain C_Zbo;SkC (we have defined the stock price from the article),

pic_3144
Picture: Defined condition for comparing the stock price in the article and in the sale

  • with the OK button, we save the condition to the Filter.
  • After pressing the Run button, the required filter is created.

Example - Filter by the currently set company

We want to create a filter of sales orders from the period 2010 - 2014 created for the company "Bikeshop". This company is defined in the "ES" book.

pic_3355_2023

Picture: Defined condition for the period filter

pic_3774_2023

Picture: Defined condition for the book filter

Example - Filter from the menu

We want to create a filter of all activities of the "Reminder" type whose responsible person is "Barbora Černá".

pic_1144_UI

Picture: The Activities book with the filter menu open

  • Open the Data field menu and select "ActivityType;Abbr".
  • Confirm the selection with the OK button.
  • In the Value field, select "REM" (the "Reminder" type).
  • Confirm the selection with the OK button. If we press the Filter button, the filter is applied immediately according to this condition.

pic_1158_2023

Picture: Selecting the Type field in the comparison condition

  • Open the Data field menu and select "Zodp. os.".
  • Confirm the selection with the OK button.
  • In the Value field, select "Barbora Černá".

pic_9750

Picture: Comparison condition

Extended menu (Context menu)

When creating filters, some fields offer a context menu of the individual parts the value is composed of. A typical example is the Document field, which displays the document number, e.g. in the format 10/2015/45. On the List tab of purchase, sales and warehouse documents, if we right-click in the Document column and select the Create filter option, an extended menu for creating a filter from the Document field is displayed, and we can select from Document, Book, Business year and Number.

pic_3846_UI

Picture: Extended menu when creating a filter from the Document column

Saving the filter

If we want to save the filter definition, we press the Save / Save as button.

pic_9727_202505

Picture: Form for selecting how to save the filter

The Save as button offers several options for saving / re-saving the filter:

Save

Saves changes to the conditions or the name of an existing filter. After the filter is re-saved, the GUID remains unchanged. The F2 key can also be used.

pic_107276

Picture: Prompt to re-save an existing filter - Save

Save as

Saves a new filter under the name, classification, level, user, etc. we choose. The Ctrl+F2 keys can also be used.

pic_2125_2023
Picture: Form for saving the filter - Save as

Modify properties and save

Saves changes to the assignment level (change of user, group, client, company, etc.). After the filter is re-saved, the GUID remains unchanged. The Ctrl+Shift+F2 keys can also be used.

pic_107277

Picture: Form for re-saving filter properties - Modify properties and save

Save to file

Saves the filter conditions to an *.xml file. The Ctrl+S keys can also be used.

Load from file

Loads the filter conditions from a saved *.xml file. The Ctrl+O keys can also be used.

Description of selected fields:

Name

The filter name must be filled in and must be unique for the given saving level.

Level

Depending on which level we select in this field, we enter information in other fields and tabs:

  • Factory - manufacturer settings.
  • Global - the saved filter will be available to all users and groups.
  • Client - the saved filter will be available to all specified clients.
  • Group - the saved filter will be available to all specified groups.
  • User - the saved filter will be available only to a specific user.
  • Company - the saved filter will be available only to the specified multi company.

User

We select the user name from the book of users.

Client

Select the client for which we want to save the filter.

Company

Select the multi company of the current client for which we want to save the filter.

Note: To be able to save filters for different levels, the rights "Global", "Client", "Group" and "Multi company" must be set in the user parameters User roles - User rights - Rights .

Saved filters are displayed in the filter menu. Each saved filter shows a letter indicating its saving level.

pic_1147_UI_202407

Picture: Saved filter Available in the filter menu

Classifying the filter into a tree

For better clarity, saved filters can be organised into a tree (folders). Folders are created using the Classification. When saving a new filter (Save as) or changing the classification (Modify properties and save), we define the folder in the Classification field. The classification can be defined as:

pic_3936_202407

Picture: Form for editing filter properties - the Classification field filled in - multi-level menu

Clicking the icon pic_830i then displays the menu of saved filters organised in folders.

pic_3937_202407

Picture: The Sales Orders - book: organised filter menu

Filters in the tree (folders) are sorted alphabetically; the exception is the "Factory" folder, which is always placed last in the list. The Factory folder contains all factory filters set by the manufacturer.

Running the filter

The filter can be run from the following places:

pic_1034_UI_202407
Picture: Filter definition form

pic_2172_UI
Picture: Adding a condition via the right mouse button

pic_2173_2023

Picture: Condition definition form after right-clicking on the form

pic_2174_2023
Picture: Condition definition form - Enter value at start

pic_2175_2023

Picture: Form of a run condition with the Enter value at start parameter set

Filter administration

The filter administration form can be opened with the Ctrl+Shift+Alt+S keys or from the filter menu using the Filter administration option. In this form we can create new filters, delete saved ones and make other changes. All saved filters are displayed in the filter menu.

pic_1148_202407

Picture: Filter administration form

Description of icons:

pic_1207i

Adds the filter to favourites.

pic_1208i

The filter can be exported to / imported from a file.

pic_1209i

After this function is run, the user sees all configuration objects, including those of other users, and can work with them. Service mode requires the right for service interventions.

A saved filter can also be tested in Filter administration. Switch to editing the saved filter with F5; on the Filter properties tab there is a Filter test button. Pressing the button opens the Filter test form, where we run the filter with the Filter button. In this way the administrator can test filters of other users that they normally cannot see.

pic_107284

Picture: Filter form - Filter properties tab

pic_107285

Picture: Filter test - filtering result

Columns

Clicking the icon pic_1002i displays the column menu and column management.

pic_1052_2023

Picture: Expanded column menu in the Invoices Out book

Defining column settings in selections

After clicking the icon pic_1002i and choosing Edit table settings, the Current table setting form is displayed, in which we can define the column settings.

pic_9752

Picture: Open form for defining column settings

Description of icons:

pic_1244i

Opens the form for defining a new column.

pic_1039i

Opens the settings form of the column on which the cursor bar is currently placed. Here we can edit the setting.

pic_1074i

Deletes from the list the name of the column on which the cursor bar is currently placed.

pic_1252i

Moves the cursor bar by one row.

pic_1245i

Creates a copy of the column on which the cursor bar is currently placed.

pic_913i

Moves the data field on which the cursor bar is placed up.

pic_914i

Moves the data field on which the cursor bar is placed down.

When Fit columns is checked, the column width adapts to changes in the window size. Otherwise, the column size does not change. When the window is reduced, the columns are gradually hidden and a scroll bar is available at the bottom of the screen.

If we check Display aggregations in the table, a panel with the results of calculated aggregations is displayed.

With the Number of frozen columns, we specify the columns that will be frozen. These columns will always be visible and will not scroll off the screen. The specified number of columns from the beginning of the list is always frozen.

On the Sorting tab, we set the individual sortings in the table.

On the Conditional row formatting tab, we can define conditions for formatting the table rows.

Working with the table is also described in more detail in the Universal forms section.

Book Contents

Book Index

Column properties

This option sets the format of the given column.

Ways of setting column properties:

pic_319_2023

Picture: The Column properties form

Description of fields:

Data field

Field of the data module.

Name

Setting of the column name in the header.

Field mask

Format of the field mask. Described in more detail below.

Display

 

Width

We can specify formatting for the width of the given column. The column is displayed with the width of the required number of characters. When we widen the column, more characters are shown. All format types can be used to set the width, most often 'S' or 'W'. Again, we choose from preset options.

E.g.: In the City column we set the width 'S10'; Ústí nad L is displayed, and after the column is widened, the full name is displayed.

Alignment

Setting of the alignment of the column header and data to the left, right or centre.

Aggregation

Setting of the aggregation type for the given column (sum, average, count distinct). The aggregation is activated in the lower right corner of the module.

Field mask formats - Pictures

In the Field mask field, we set the column formatting type, which differs according to the value type. Different character types are used for text and for numbers.

pic_10442

Picture: Column properties - Field mask

Overview of initial formatting characters:

N (n) – initial format character for numbers

S (s) – initial format character for strings

D (d) – initial format character for dates

T (t) – initial format character for time

C (c) – special date and time formats, mainly for exports

U (u) - initial format character for GMT date and time

Book Contents

Book Index

(N) Number format

pic_10443

  1. Initial format character
  2. Sign - the sign is always displayed, regardless of the format setting (recommended for backward compatibility)
  3. No thousands separator – if this character is not specified, the number is displayed with thousands separated (according to the Windows settings).
  4. Total number of characters including the sign and the decimal and thousands separators. The default column width is calculated from this number.
    If the number has more significant digits than specified, it is displayed in full with all digits. This number is important only for calculating the default column width.
  5. Decimal point (according to the Windows settings)
  6. Number of decimal places

Example: Displaying the amount "-1 234 567,89" in the Price column. The total number of characters including spaces and the sign is 13.

Format

Display

N15

-1 234 568

N8

-1 234 568

N-15

-1 234 568

N_15

-1234568

N-_15

-1234568

N10`2

-1 234 567,89

N-15`2

-1 234 567,89

N_15`2

-1234567,89

N015

-000 001 234 568

N-015`2

-001 234 567,89

N-15`2

-1 234 567,89

More examples of number formats:

Format

Display

N3

1

28

315

1 518

N_3

1

28

315

1518

N_03

001

028

315

1518

n-8`2

13,01

683,00

-3 328,12

n-08`2

00013,01

00000,00

-3 328,12

n-08`2B

00013,01

(the value 0 will be blank)

Book Contents

Book Index

(S, D, T) String, date and time format

String

Report

Format

Resulting format

S30

The default column width will be 30 (em) characters

Ústí nad Labem

S10

The default column width will be 10 (em) characters

Ústí nad L.. (after widening the column, we will see the full text)

Date

Report

Format

Resulting format

D6

Date format according to the Windows settings

24.06.2024

D5

Date format according to the Windows settings

24.06.2024

Time

Report

Format

Resulting format

T1

hh:nn

05:35

T4

hh:nn:ss

5:35:25

T6

hh:nn:ss,zzz

5:35:25,840

T11

hh:nn (>24 hrs)

35:42

T14

hh:nn:ss (>24 hrs)

35:42:15

T16

hh:nn:ss,zzz (>24 hrs)

35:42:15,840

T21

dhh:nn (>24 hrs)

1d11:42

T24

dhh:nn:ss (>24 hrs)

1d11:42:15

T26

dhh:nn:ss,zzz (>24 hrs)

1d11:42:15,840

(d = number of days, hh = hours, nn = minutes, ss = seconds, zzz = milliseconds)

Book Contents

Book Index

(C) Format for special date and time formats, mainly for exports

Example: Options for setting the date and time format, e.g. 15.03.2021, 16:25.

Report

Format

Resulting format

Report

Format

Resulting format

C2

'yyyy'

2021

C15

x hh:nn:ss

44270d 16:25:43

C4

'hhnn'

1625

C16

'yyyymmddhhnnsszz'

20210315162543840

C8

'yyyymmdd'

20210315

C17

'yyyymmdd hh:nn:ss'

20210315 16:25:43

C10

'yyyy-mm-dd'

2021-03-15

C18

'x hh:nn'

44270d 16:25

C11

'dd.mm hh:nn'

15.03 16:25

C21

'yyyymmdd hh:nn:ss,zzz'

20210315 16:25:43,840

C12

'dd.mm hh:nn'

15.03.2021 16:25

C23

'yyyy-mm-dd hh:nn:ss,zzz'

2021-03-15 16:25:43,840

C13

'dd.mm.yyyy hh:nn:ss'

15.03.2021 16:25:43

C + any other number

 

2021-03-15 16:25:43

C14

'yyyy-mm-dd hh:nn'

2021-03-15 16:25

 

 

 

(dd = day, mm = month, yyyy = year, x = number of days)

A custom date format can be created using @, e.g. @yyyy.dd = 2021.03.

Book Contents

Book Index

(U) GMT date and time format

The "U" format displays the date and time together (this is the so-called universal time). The abbreviation GMT was used to express universal time - according to the time at the Greenwich (prime) meridian.

Report

Format

Resulting format

U2

'dd.mm.yyyy hh:mm:ss'

(always a two-digit date and time format)

06.05.2024 08:15:36 GMT

U3

'dd.mm.yyyy hh:mm:ss'

21.05.2024 8:15:36 GMT

U1

'dd.mm.yyyy hh:mm:ss,zzz'

21.05.2024 8:15:36,840 GMT

Column settings and row settings

In the selected Book (e.g. Book of Invoices Out, Sales Orders book, ...) we can highlight selected rows or columns. Entering conditions is the same in both cases.

The data in the Columns table apply to the specific selected column; the data on the Conditional row formatting tab apply to all columns.

Conditional column formatting is set in the Current table setting form on the Columns tab, where we select the required column. Double-clicking opens the form for defining conditions of the given column, in which we switch to the Conditional formatting tab.

To set conditional row formatting, switch to the Conditional row formatting tab in the Current table setting form.

Conditional formatting of both rows and columns is set by pressing the Insert key; selecting the Conditional formatting option opens the Highlight if: form. It is divided into two parts. In the upper part of the form, we enter the conditions for the validity of the formatting, and in the lower part we set the colours and font styles.

pic_1703414

Picture: The Highlight if: form

In documents, we distinguish several types of colours. The basic distinction is font colour and background colour.

Colours

We can choose from 22 predefined colours or select the Own option. If the Own option is selected, the Background colour and Foreground colour fields become available, where we can set our own values.

Background colour

The field is active only when the Own option is selected in the Colours field. Here we set the background colour of the table.

Foreground colour

The field is active only when the Own option is selected in the Colours field. Here we set the text colour.

Font format

Option to choose Bold, Italic, Underlined or Crossed out font

To enter a condition, click the Condition button. A window for setting filter conditions opens. The Insert key opens the menu of condition types (Comparison and Nested condition); selecting Comparison condition opens the Field selection form, in which we select the field to which the condition will be applied.

pic_1703415

Picture: An open Filter condition

A description of the condition can be found here.

Book Contents

Book Index

Select columns

Column selection can be used to influence the user setting of data display in the table. By adding or removing a column, only the required fields can be displayed.

pic_9752

Picture: Open form for defining column settings

The Current table setting form lists the fields we want to display, in the corresponding order. The Insert key adds fields and the Delete key deletes fields. At the top, the Up and Down buttons are used to arrange the columns.

Creating a new column:

Example: In the book of Invoices Out, we want to add a new column showing the "Customer Abbr 1".

pic_1703416

Picture: Selecting fields for columns

pic_1703417

Picture: Adding a new column

Views

Views can be set on the System tab in the ribbon. By views we mean a combination of saved filters, columns and sorting. Views serve to preserve the book settings - columns, column format, colour highlighting of data, table state, filter conditions, sorting, etc. Views can be saved and recalled at any time when needed. If the view also includes running a filter, the data in the table is refreshed.

Views can be found under the button pic_1246i, and via administration we display the form for saving a view, in which we can define its name and other properties.

pic_1027_2023

Picture: Form for saving a new view

Description of selected fields:

Name

Name of the view.

Description

More detailed description of the view.

Run filter

We can select from already saved views in the selection table.

Classification

Field for assigning the view to a group. In this field we enter the name of the group. The view will then be placed within this group in the context menu.

Level

In this field we select the level for which the view will be saved.

User

Field for selecting the user for whom the saved view will be available.

Client

Field for selecting the client for whom the saved view will be available

Table settings

List of tables in which the column settings have changed.

Administration of views

Via the Views button in the ribbon, we can open View administration.

pic_9754

Picture: Expanded view menu in the Sales Orders book

After opening the Administration menu, a form with defined and saved views is displayed. In this form we can define new views, delete saved ones and make other changes. All saved settings are displayed in the view menu.

pic_1032_2023

Picture: Form for administration of saved views

Description of icons:

pic_1017i

Opens the form for defining a new view.

pic_1250i

Opens the form for defining the settings of the view on which the cursor bar is currently placed. Here we can edit the setting.

pic_1248i

Deletes from the list the saved view on which the cursor bar is currently placed.

pic_1247i

Exports/imports the view to/from a file.

pic_1249i

Creates a copy of the view on which the cursor bar is placed.

pic_1251i

The user sees all configuration objects, including those of other users, and can work with them. This setting requires the right for service interventions to be set.

Like Filters, views can be classified into a tree. In the Classification part of the view, enter e.g. View\Sales Orders\Omega,..

pic_9753

Picture: Classifying a view into a tree

Book Contents

Book Index

Selection tables

When filling in documents (cards), a selection table can be opened on some items with the F12 key or the Alt+Down arrow key combination. This table contains a list of items from which a selection can be made. Use the arrows to place the cursor bar on the required item and press the Enter key to insert the item into the document.

pic_034_UI.png

Picture: Selection table of financial institutions

If entering the item is mandatory, the selection table appears automatically. The table also appears if we enter an item into the field that does not exist in the database, and therefore not in the selection table either. The program does not allow us to continue until the error is corrected.

It is also possible to add another entry to the selection table. Pressing the Ins key opens a form for entering a new item. We enter the required data into it and, after finishing, add the new item to the table with the Ctrl+Enter keys.

Note: In the Administrator module, selected persons can be granted the right to edit and add to selection tables (the rights are described in the chapter Administrator - Users - parameters).

Graphically, the selection table does not differ from a standard book of documents. As a rule, the same operations can even be performed in the selection table as in the book of documents itself.

A special type of selection tables are simple code lists (stored in the SpeStr database). These are various codes, cost centres, etc. Each entry in a code list consists of an abbreviation and a description. The abbreviation can have at most twelve characters (letters and digits). This abbreviation is entered in documents. In a code list, only the description can be edited (with the F5 key), not the abbreviation. Deleting a record is impossible for a regular user.

Book Contents

Book Index

Searching

The program offers several ways to find the required document or several documents. The advantage is the possibility of searching both in the table of documents and when viewing individual documents, on any page of the document.

Browsing

The Grey plus key browses the documents in ascending order, i.e. forwards.

The Grey minus key browses the documents in descending order, i.e. backwards.

If a filter is active, browsing takes place only in the documents matching the filter setting.

If Searching is activated, browsing takes place only in the documents matching the search conditions (e.g. in the invoices of a single business partner), not only over the documents but also over the table of documents. The Searching function is described below.

The PgUp and PgDn keys allow page-by-page browsing up and down in the table.

The Ctrl+Home keys place the cursor bar on the first record in the table, the Ctrl+End keys on the last one.

Note: In module books and some of their tabs, it is possible to browse using the scroll bar. Since neither the total number of records nor the position in the whole table is known, the scroll bar always returns to its stable position in the middle of the bar when browsing. It therefore cannot be dragged as in other programs. Scrolling in the table can also be done with the mouse wheel.

Search field

The locator, i.e. a blank field with a blinking cursor in the screen header, is used for easy searching for selected items, both in the table of documents and directly in documents in View mode.

Types of locators:

Sorting:

In some cases, items in a selection can be sorted by different keys. A typical example is selection from the postcode code list. Here it is necessary to search for cities either by postcodes or by city names. You can switch between the individual sorting types either with the Alt+Z hot key or by pressing the 'Z' button.

pic_035_UI.png

Picture: Sorting in the Suppl./Cust. book

Warning: The program remembers the last selected sorting even when you "leave" the given book. However, this rule does not apply when you open a code list from editable fields. For these fields, the sorting is always the one set by default for the given field. For example, in a purchase or sales item you open the code list of contract codes, in which you set sorting by description. When inserting the next item, however, the sorting will again be by abbreviation.

With the Ctrl+Shift+S key combination, the locator can be displayed in universal forms and used for searching on any page of a document in IS K2.

Quick search Alt+F7

The search function can be activated by pressing the Alt+F7 key. A window for entering conditions appears. After they are defined and the Search button is pressed, the first selection is made. This switches searching on (active searching is indicated in the status bar of the screen).

Quick search returns the matching records, according to the user's choice, as highlighted text directly in the book or in the Container state. In books filtered in this way, we can browse with the Ctrl + grey plus (forwards) and grey minus (backwards) keys; in addition, in the table we can look into the document with the F4 or Enter key regardless of the active search. (The Esc key returns us to the table and we can continue searching.)

pic_707_UI.png

Picture: Search menu in the Sales Orders book - Alt+F7

Description of fields:

Search string

Enter the search string in this field.

Direction

 

 

Forward

Search procedure forwards.

 

Backward

Search procedure backwards.

From current record

The search starts from the record on which the cursor bar is placed.

Specification

 

 

Case sensitive

The search will be case-sensitive.

 

Search in current column only

The search will be performed only in the column in which the cursor is located.

Full-text search

Full-text search is used to search for selected parts of text that may be located at any position. In the selection conditions, special forms are reserved both for quick search and for filtering. These also allow case-sensitive searching.

No special key is used for full-text search; instead, it is entered in the Field text, Note text and Bind text forms. These forms are opened, e.g., when defining conditions in the forms for Quick search Alt+F7 (see the corresponding chapter).

Picture: The Field text form

In the Text field, enter the text we want to search for. The text entered in this way must exactly match the searched text, otherwise the search will not be performed. When entering the searched text, we can check the Use wildcards (*,?) option. Wildcards can replace part of the searched text.

Wildcards in forms:

'*'

replaces several different characters (can be placed at the beginning, in the middle or at the end)

'?'

replaces one specific character (depends on the position)

To make the search case-sensitive, check the Distinguish lowercase and UPPERCASE field.

This search can also be entered when setting column parameters (see the chapter Basic Functions - Module Menu Functions - Display - Column parameters). In the Parameters greater than form, we then enter the conditions in the Fulltext field. Here we must additionally use characters to distinguish uppercase and lowercase letters:

'.'

replaces several different characters (can be placed at the beginning, in the middle or at the end)

'^'

replaces one specific character (depends on the position)

Reduction search

Reduction search is used for quick text searching. The advantage of reduction search is that the searched records are filtered, and only the filtered records remain displayed in the form. It is used in generated forms.

Reduction search:

pic_3403

Picture: Reduction search - substring

pic_3404

Picture: Reduction search - substring - several words

pic_3405

Picture: Reduction search - wildcard "*"

pic_3406

Picture: Reduction search - wildcard "?"

Book Contents

Book Index

AI-based field value recommendations

The AI-based field value recommendations function (also referred to as smart suggestions or AI help) makes filling in documents easier by suggesting the most suitable values for selected document fields based on historical data. The suggested values are sorted by probability. When creating a prediction, the model also takes into account the mutual relationships between the other data on the document. As a result, it offers more relevant recommendations and reduces errors in data entry.

The hardware requirements and the model deployment procedure are described in the Technical documentation in the chapter Field value recommendations.

The AI value recommendation function must be activated in the Configuration of field value recommendations, see the chapter Configuration of the smart suggestions function. Smart suggestions are activated by clicking to expand the lookup or by pressing the F12 key in an empty field. If the field already contains some text, the AI help is suppressed and replaced by the standard K2 suggestions.

pic_1703720

Picture: Purchase orders - AI value recommendations in the Supplier field

Supported documents and fields

AI-based value recommendations are available for all purchase and sales documents.

The model currently recommends values for the fields:

An AI model runs in the background and makes a prediction based on several context fields (e.g. document type, document group, book, business year and others). By comparing past documents, it offers the user the most probable records sorted by relevance.

When working with a document, the model:

The function only recommends values. No fields are filled in automatically and the final choice always remains with the user.

Advantages of smart suggestions

Book Contents

Book Index

Configuration of the smart suggestions function

The Configuration of AI-based field value recommendations form is used to set up and manage the smart suggestions function. It allows you to:

The configuration is valid for the given client.

Tab Settings

On the Settings tab, the AI-based field value recommendations function is activated / deactivated, the number of recommended records is specified, and the method of communication with the AI service and the source database is defined.

pic_1703716

Picture: Configuration of AI-based field value recommendations

Description of fields:

Enable AI-based field value recommendations

When checked, this option activates the AI-based field value recommendations function. By default, the option is unchecked and suggestions work in the standard way without the use of AI.

Number of recommended records

Specifies the maximum number of suggested values offered to the user when selecting a field value. The suggestions are sorted by probability from the most suitable to the least probable.

Take over the API connection from the K2 configuration

Specifies whether the connection parameters for the AI service and the database are to be taken over automatically from the K2 configuration. By default, K2 tries to connect to the API where the model is located on the computer on which K2 is running. In the case of web K2, it connects to the API on the server where the application server is running.

If the API is running on another machine, the option must be unchecked and the following fields specified.

API URL address

The address where the AI service is running (e.g. https://127.0.0.1).

API Port

Network port used for communication with the AI service (default 44301).

Name of the SQL Server instance with the K2 source database

Name of the Microsoft SQL Server instance containing the source data for model training.

Name of the K2 source database

Name of the K2 database from which the AI service loads historical documents for training and evaluating the model.

Tab Running training

This tab shows an overview of model training currently in progress. The training status changes in the background (as it progresses), so the list needs to be refreshed to display the current status.

Tab Training history

Overview of all finished training runs (completed, failed and cancelled). For each training run, we can see when and how the model learned, how it ended and what results it had. A detail with parameters and metrics is available for each record. The message of the record summarises the result, e.g.:

Model training

The model learns from historical documents stored in the K2 system. To keep the recommendations in line with current data and the way users work, it is advisable to retrain the model regularly. The training parameters are described in the Technical documentation in the chapter Parameters.

Training can be started:

Description of actions in the ribbon:

pic_1703717

Creates a completely new model from scratch from all available historical data. It is used at the first deployment or when the model needs to be rebuilt (e.g. after a fundamental change in the data or the architecture setting).

pic_1703718

Additionally trains the existing model on new data. It is faster than complete training and suitable for regular maintenance (e.g. weekly/monthly) so that the model stays up to date and offers the most relevant suggestions.

pic_1703719

Extracts historical data from the K2 database and saves it as a CSV file. It is used for checking - it allows you to see what data the model will receive for learning and to verify its quality and scope.

Scheduled Task Settings

pic_1703721

Picture: Scheduled task - model training settings

pic_1703722

Picture: Retraining the field value recommendation model