Book Contents

Book Index

9th page - Links and References

On the External Documents and Documents tab, external documents and records from other K2 modules can be attached to records. The link with Activities, Tasks, Documents, Links and Processes is displayed here.

pic_991_UI.png

Picture: Suppl./Cust. - External Documents and Documents

On the External Documents and Documents tab, documents and external documents can be selected for attaching, including the link type. External documents can be inserted into the External documents section with the INS key, via the right mouse button, and also using the Drag and drop method, i.e. by dragging with the mouse. Inserting attachments using the Drag and drop method can also be used in web K2.

After pressing the pic_968i button, a menu with the link types of documents/external documents opens.

The following options can be selected from the document types code list:

pic_2225_UI.png
Picture: Opened menu of external document types

The code list contains these link types:

The code list of document link types can also be displayed in Client parameters - page 4 - button Document types. For each document link type, we can select a list of documents allowed for this link - the Types of documents for links types button.

pic_2226_UI.png
Picture: Opened menu of document types

Book Contents

Book Index

Documents

External documents can be attached to individual documents or cards in IS K2. An external document is a file created by one of the Windows applications and saved in a specific Windows folder. External documents attached this way can be viewed or edited. For editing, either the application associated by Windows or the application specified in the external document parameters is used. These are, for example, contracts saved in some text file format, photographs, charts, graphic tables, drawings, etc. The external documents themselves are stored in directories on the disk. IS K2 contains only links to these external documents, which are stored in a special database.

Inserting and deleting external documents from a document

External documents can be attached, changed and detached on the External Documents and Documents page using the Insert key or the pic_968i button. An external document is detached with the Delete key.

pic_188_UI.png

Picture: External documents book

Basic data (1st page)

This tab shows the basic data of the external document.

pic_187_UI.png

Picture: External documents - Basic data

Description of fields:

Abbreviation

Abbreviation of the external document, which is mandatory. Two external documents cannot have the same abbreviation. It serves as an identification code of external documents by which they can be found.

Type

Characterizes the file type and also the configuration of the given file type in K2 (method of copying from the original folder, associated application, parameters, etc.). Ext. document types are described below.

Number

External document number.

Name

This item can be filled in either with any name, or it is automatically preset with the name of the attached file after pressing the Selection button. In this case, the name is given without the extension.

Document file

The file name of the external document, including the path from which IS K2 will open it. The file can be entered only in a new record. When selecting a file in the dialog box, a non-existent file can also be entered. If we use the Selection button, this field is filled in automatically according to the settings in the Ext. document type.

Original file

Contains the file name and the complete path where the file was located before the external document was added to the database. The file can be entered only in a new record. If we use the Selection button, this field is filled in automatically according to the settings in the Ext. document type.

Description

Description of the external document.

Company

 

Valid from, Valid to

Validity of the given external document.

Document created by

Name of the user who added the external document to IS K2.

Sorted

Date when the external document was added.

Document changed by

Name of the user who changed the external document.

Changed on

Date of change of the external document.

File change

Date of change of the external document file.

File change time

Time of change of the external document file.

Change wrote by

Name of the user who recorded the change of the external document.

When inserting a new external document, the Select file button is available. Pressing the button opens the file selection dialog defined in the Input folder field in the Ext. document types book. As soon as we save the new external document, the relevant actions according to the external document type are performed (copying, moving, creating a new file name, …) and the File and Original file fields will no longer be accessible.

Document history tab

This tab shows the history of work with the selected external document.

pic_6316.png

Picture: External documents - Document history tab

Documents tab

The Documents tab shows a list of records to which the given external document is attached.

pic_732_UI.png

Picture: External documents - Documents tab

Processes tab - External documents

This section displays the workflow processes related to the record.

pic_6319.png

Picture: External documents - Processes tab

Ext. document types
External document types used in IS K2, e.g.:

pic_198_UI.png

Picture: Ext. document types code list

Basic data

pic_186_UI_202208

Picture: Ext. document types - Basic data

Description of fields:

Abbreviation

Abbreviation of the external document type.

Type

In the selection, you can choose how the original file will be handled when the external document is added and how the file will become part of IS K2:

 

Apply original

The file will be neither copied nor moved, and only a link to the original location will be written to the database.

 

Overwrite the copy

The file will be copied to the Archive folder. If a file with the same name exists in the Archive folder, it will be overwritten by the new file.

 

Overwrite by transfer

The file will be moved to the Archive folder. If a file with the same name exists in the Archive folder, it will be overwritten by the new file.

 

Unique copy (default)

The file will be copied to the Archive folder. If a file with the same name exists in the Archive folder, a new name will be created that differs by a number in the last characters of the name.

 

Unique transfer

The file will be moved to the Archive folder. If a file with the same name exists in the Archive folder, a new name will be created that differs by a number in the last characters of the name.

Hide in menu

 

Type description

 

Folder

External document types can be arranged in a tree (folders). In the Folder field, we can write a simple name (even of several words) or a name with backslashes to create a multi-level menu, e.g. Offer\Scan.

Input folder

Presetting of the folder (directory) in which the file selection dialog will open after pressing the button in the edit field or after pressing the Selection button on page 1 of external documents. If this item is not filled in, pressing the Selection button uses the last used folder (directory).

Dialogue extension

Default file extension of the file dialog.

Dialogue mask

File type in the standard Windows file selection dialog (after pressing the Selection button on page 1 of the external document form). The individual character sequences in the text in the order [name],[extension],[name],[ extension], ... must be separated by the "vertical bar" character.

Example text: Text files|*.txt|Word|*.doc|All files|*.*

This sample text fills the table with three file types, namely text files (files with the "txt" extension), MS Word texts (files with the "doc" extension) and all files.

If we want several file types to be listed in one row of the standard file selection dialog, we separate them with the '#' character.

Example text: Text files|*.txt|Documents|*.doc#*.rtf

Archive folder

The folder (directory) to which the file will be copied or moved so that it becomes part of the K2 file arrangement. Filling in this field is mandatory.

Associated application

This field is filled in if we want to open the external document with an application other than the associated one. The name of the Windows executable file (including the path) with which the application is to be started is entered here.

Application parameters

The parameters are filled in if the Associated application field is filled in. The character sequences of the parameters given after the file name of the associated application are entered here. The '%S' parameter will be replaced at run time by the file name of the external document, including the path.

Archive name

This field is filled in if the original file name needs to be replaced by a specific name.

External documents ribbon tab

For working with external documents, the buttons in the ribbon on the External documents tab can also be used. The External documents ribbon is displayed from the External Documents and Documents tab. An external document can be opened by double-clicking the given file, via the View document button in the ribbon, with the Enter key, or via the right mouse button by selecting the View document option.

pic_6321.png

Picture: External documents ribbon

The following other buttons can be used in the ribbon:

The Create new document revision, Save revision and Cancel revision buttons are configured in the DMS database.

Book Contents

Book Index

Documents

Documents created in IS K2 are inserted on the External Documents and Documents tab into the Documents section using the pic_968i button.

pic_6322.png

Picture: Documents section

Select the document type from the displayed menu. A list of documents opens, and we insert a link to the required document with the Enter key. Documents can also be inserted in bulk by marking the documents we want to insert and confirming the selection with the Enter key. Save in the standard way with the F2 key.

The inserted record is deleted with the Delete key.

pic_992_UI.png

Picture: Document types code list

Book Contents

Book Index

Links

In some modules, there is an option on the Attachments tab to switch to the Links sub-tab. It is currently used mainly for websites and e-shops to attach pictures and other related files that are to be displayed on the website/e-shop.

pic_3697

Picture: Article book - Attachments - Links sub-tab

In links, we work with Categories and Link types.

Overview and settings of Link types

Type

File extensions

Document

doc, docx, odt, fodt, rtf, txt, xls, xlsx, ods, fods, csv, sylk, xml, pdf

Picture

jpg, jpeg, png, bpm, gif

Link

http:, https:, ftp:, sftp:

Other

 

Video

mov, avi, mp4, mpg, mpe, mpeg

Overview of categories and their default combinations with Link types

Type

Category - Abbreviation

Use for e-shop

Document

Documents

It is displayed on the Media tab in the Documents section.

Picture

Main detail picture*

For the article detail, banners

Picture

Main picture - tile*

For display in the tile list of articles

Picture

Main picture - thumbnail*

For the basket, history, category icons

Picture

Main picture - list*

For display in the row list of articles

Picture

Gallery - slider thumbnail

For the thumbnail in the slider of the displayed gallery

Picture

Gallery - full size

Full size of the picture from the gallery

Picture

Gallery - medium thumbnail

For the overview of pictures in the gallery

Picture

Gallery - larger thumbnail

Currently not used.

Link

Youtube

It is displayed on the Media tab in the Videos section.

Other

Other

Not used for the e-shop.

Video

Videos

It is displayed on the Media tab in the Videos section.

* On the Article card or other records, exactly one picture of this category may exist for e-shop purposes; it graphically represents the given record.

We insert a new link into the table using the buttons displayed below the tab label or with the Ins key. We can then set or modify the Name and Description of the link.

Inserting a new link with a button

To insert a new link, either the Attach document button pic_968i or New item (Ins) pic_972i can be used. The Attach document button allows a new link to be inserted from the default combinations of link type and category (see above). A dialog window for selecting a file is displayed. According to the link type, a filter corresponding to the file extensions of the given type is displayed. We can "switch off" this filter by selecting the option All files (*.*) next to the file name field. Then we can select a file of any type. With the Open button, the selected file is copied to the location set by the function Image link storage configuration and a new record with this link is created in the link table.

Inserting a new link with the Ins key

We do not recommend this method because the source file is not copied - the link is created to the path we have entered.

If we press the Ins key, a form for inserting a new link is displayed. By entering the Link type, we restrict the subsequent selection of Categories (K2 does not allow us to enter a Link type other than the one set in the Category). Then we insert the path to the file.

Note: The standard e-shop or other K2 functionalities usually work with predefined combinations. If we create a different combination, or if we do not follow the set combination, it is necessary to verify whether it is actually displayed in the e-shop in the required way.

"Bulk" insertion of pictures using the script Adding a picture to an article

If we want to create a series of pictures for publication on the website/e-shop, the easiest way is to use the script: New e-shop - Adding pictures to articles (NewEshop_AddPicture.PAS), whose use is described in detail in the script catalogue.

Configure saving of documents and images

The settings for storing documents and pictures are a very important part of the functioning of the website/e-shop itself. This configuration is located in the module Web and e-shop - Administration and settings - Document and picture storage configuration.

There are two variants of where these links can be stored:

The Image Url Root field is intended for working with pictures that have been uploaded via FTP. Thanks to the URL address at which the pictures of the given e-shop are located, a preview is then available in IS K2.

pic_4875_02_2024

Picture: Image link storage configuration

Description of fields:

Upload to FTP

A flag that activates storing in the FTPUploadRoot folder if FTP is configured correctly - FTPSettings tab (more information below).

Use SFTP protocol

A flag that enables the use of the SFTP protocol if it has been configured.

Path to FTP directory

The folder in which the records are to be stored on the FTP.

Save file copies

The flag activates storing documents and pictures in the folder defined in the File System Root field.

Storage path

Path (inside the K2 root directory or a full path) where files (especially pictures) are stored. This path is taken into account when uploading pictures with the script Eshop - Adding pictures to articles or when adding links to the Attachments tab.

URL path to images

URL address at which the pictures of the given e-shop are located - it is intended for reading only. The FTPUpload flag must also be checked.

Delete files from storage

A flag which ensures that if a link to a picture or another attachment is deleted, it is automatically deleted from the storage as well. E.g. if a picture is on several article cards and is removed from one of them, it remains in the directory. If it is deleted from all cards for which it was used, it is also deleted from the directory.

Note: It is possible to have both storage variants selected or just one of them.

FTP (File Transfer Protocol) is used for transferring data between two computers that are not on the same network but are connected to the Internet. Since FTP is in a sense an intermediary between two computers, it serves as protection against possible misuse. To be able to use this protocol for transferring pictures and other attachments, it needs to be configured correctly on our computer. Furthermore, we will need to enter data into K2 so that it can communicate via FTP.

pic_4874_2024

Picture: Image link storage configuration - FTPSettings (FTP connection settings)

Description of fields:

Server

FTP address that we use for storing picture and other links.

User

User name for logging in to FTP

Password

Password for logging in to FTP

Port

Specifies the computer and port for the data connection. The client sends this command and waits for the data connection on the given port. There are various ports - among the most frequently used is port 21, which is set by default.

Use SSL/TLS

Using this encryption protocol can eliminate the risk of transferring passwords and data in readable form.

Data Protection

Protection and security for data transfer

Pasive

Passive mode switched on means that the server will listen and the client will initiate the data connection.

SFTP (SSH File Transfer Protocol) is used for transferring data between two computers that are not on the same network but are connected to the Internet. The SFTP protocol ensures secure data transfer using encryption, during which no unencrypted data of text files is transferred.

pic_7264_2024

Picture: Image link storage configuration – SFTP Settings (FTP connection settings)

Description of fields:

Server

SFTP address that we use for storing picture and other links.

Port

Specifies the computer and port for the data connection. The client sends this command and waits for the data connection on the given port. There are various ports - among the most frequently used is port 22, which is set by default.

User

User name for logging in to SFTP.

Authentication mode

Selects the authentication option, either by password or by private key.

Password

Password for logging in to SFTP.

Path to the private key

Path to the file with the private key. The private key must be in PEM format.

Pictures can be located anywhere; we recommend having both the pictures and the e-shop located in the so-called DMZ, i.e. outside the internal network. However, two points need to be set up: