Form designer
The Form designer is used to design forms and their modifications for the data modules of IS K2. Forms are saved as fragments. Each fragment is of a certain type, depending on which part of the form is being designed. We can define any structure of books with our own number of pages, grids and fields.
Running the designer
The Form designer can always be run only over a specific form. It is not possible to open the designer on its own without editing a specific form. To work with the designer, the user must be assigned the Form modifications right, which is in the Administrator - General section.
The Form designer can be run using the key combination Ctrl+Alt+Shift+D.
Another way to run the Form designer is using the right mouse button. When we click with the right mouse button, e.g. in the ribbon area, a context menu is displayed where we select the Design option.

Picture: Running the Form designer using the right mouse button
The designer environment is displayed, consisting of the Ribbon, the Control panel and the Form design.

Picture: Form designer
Form designer ribbon
The Form designer ribbon consists of four basic tabs: Home, Fragment, Insert and System. Each of these tabs serves a different function and contains different options.
Home tab
The ribbon on the Home tab contains the most important and most frequently used functions of the Form designer.

Picture: Form designer ribbon - Home tab
Form
The ribbon on the Home tab contains the most important and most frequently used functions of the Form designer.
- Save - saves the form design.
- New - button for creating a new form:
- New empty - a completely empty form design is displayed.
- New book - a form design with a predefined book skeleton is displayed. The width is preset and some fragments are included.
- New library - option for creating a new library fragment.
- Close - closes the Form designer. If there are changes, a dialog box for saving the changes made is displayed.
Export/Import
This section contains all functions for importing or exporting the current form.
- Save and Export - saves and at the same time exports the form design to the selected storage.
- Export current form - exports the current form design as a fragment to a folder selected by the user.
- Import current form - imports the current form from a folder selected by the user.
Administration
General functions, e.g. for managing pictures or fragments.
- Picture manager - displays a book that is a list of all pictures available in IS K2. For a better overview, the pictures in this book are divided into categories.

Picture: Book of pictures
- Show Fragments book - opens the book of fragments in IS K2.
- Show info panel - displays an information panel with basic data for the selected component. It shows the type of the component and its size. The shortcut keys for this function are Ctrl+I.
![]()
Picture: Component with the information panel
Mode
Section containing functions for switching the available Form designer modes on/off.
- Decorated mode - this button can be used to switch the decoration mode of the Form designer off or on. All lines and decorations of the designer are switched off. The shortcut keys are Ctrl+D.
- Live mode - this button can be used to switch on the data reading mode. The form design then displays the data from its data source. This way we can verify whether the form design works. The shortcut keys for this mode are Ctrl+L.

Picture: Form design with the data reading mode switched on
After switching on the reading mode (Live mode) and switching off the decoration mode, the designed form looks exactly as the user sees it.
- Modal mode - this button can be used to switch on the modal mode of the Form designer. The window with the form design can then be moved, e.g. to a second monitor. Shortcut Ctrl+M.
Clipboard
This section contains functions for copying components in the form design.
- Copy to clipboard - copies the selected component to the clipboard. The shortcut key combination for this function is Ctrl+C.
- Paste from clipboard - inserts the content of the clipboard into the form design (Ctrl+V).
- Move from clipboard - inserts the content of the clipboard into the form design and removes it from its original position. The shortcut keys for this function are Ctrl+Shift+V.
Fragment tab
This tab contains all functions and options for working with a component (fragment) within the form design.

Picture: Form designer ribbon - Fragment tab
Select
This section offers options for selecting (marking) a component in the form design. You can select a specific component, the parent component, or all components within a container component.
Alignment
Options for aligning a component within the parent component in the form design.
Place
Options for moving (shifting) fragments inside a container component in the form design. There are functions for moving a fragment to the first or last place within the container component, or by one position towards the beginning or end.
Edit
Actions for editing the selected (marked) component in the form design. The Edit button displays a form for setting and changing the properties of the component. There are also options for changing the height and width of the component.
Handling
Other actions for manipulating a component in the form design.
Insert tab
On the Insert tab, the toolbar contains a palette of all fragments that can be used. Clicking the respective fragment with the mouse inserts it into the form design.

Picture: Form designer ribbon - Insert tab
Insert fragment
This button displays a list of all existing fragments. We can then select fragments from this list and insert them into the form design.

Picture: Form with a list of all available elements (fragments)
Simple
Section with an enumeration of plain (simple) fragments. These components are used to enter or display IS K2 data.
Panel
List of panel components. These fragments are used to separate blocks of information on the form. Other components can be placed in them, usually those that belong together in meaning.
List
List of components suitable for displaying a table (list) of records.
Container
List of container components. We also insert other fragments into these fragments.
ToolBar
Components forming the toolbar (Ribbon and Simple toolbar).
Other
List of the remaining components. The Library reference button can be used to insert a library fragment into the form design. A list of all available library fragments is always displayed.
System tab
This tab contains actions of a system nature, e.g. help or VCX styles for forms.

Picture: Form designer ribbon - System tab
Display
This section contains options for displaying the statistics of the root fragment, as well as keyboard and floating help.
Styles
The Styles button displays a list of all VCX styles that can be used for forms. The Change current button can then be used to edit the selected style.
Form
Deletion of form attributes and adjustments.
Help
Actions for using the help.
Control panel
The designer control panel contains 3 tabs: Current, Root and Tree. All properties of fragments and components can be set here. The saving level of the form is defined here and all important information about fragments is displayed here.
Current tab
The Current tab displays the properties of the currently selected (focused) fragment. All properties are loaded here whenever a fragment of the form is clicked.

Picture: Current tab
Description of fields:
String ID |
Identification of the fragment. |
Type |
Identification of the parameter type (e.g. Input, Grid). |
Data context |
Identification of the data source of the fragment. It can be, e.g., the name of a field from a table. It expresses which data the fragment is connected to and which data it displays (e.g. CDo). |
Full data context: |
The entire composite path to the data source:
|
Is library |
Identifier for a library fragment. If the field is checked, it is a library fragment. |
In the lower part of the form, there are buttons for manipulating the selected fragment. The most important operations for working with fragments are included here.
Description of fields:
Edit |
Pressing this button displays the detail of the fragment, where its properties can be set. Hot key F11. |
Change place |
If we select two fragments, this button can be used to swap their places. |
Close to panel |
Inserts the selected (marked) fragments into a component of the Panel type. |
Close to stack panel |
Inserts the selected (marked) fragments into a component of the Stack Panel type. |
Bands |
Width of the current component. |
Size |
Height of the current component. |
|
Buttons affecting the width of the selected fragment. The key combination Shift + right or left arrow can also be used for this function. |
|
Buttons affecting the height of the selected fragment. Shortcut Shift + up or down arrow. |
|
Shifting the fragment by one position. Shortcut Ctrl + right or left arrow. |
|
Shifting the fragment to the first or last position within the container component. |
|
Aligning the fragment to the top or bottom. |
|
Fitting the fragment to the entire available area. |
Root tab
This tab is used mainly to determine the saving level of the form or its modification. The saving level consists of a combination of the state of the data module for which the form is intended and the target group of users.

Picture: Root tab
In the upper part of the form, there is the W x H field showing a value, e.g. in the form Dock size: 1345 x 664 px, 362,9 x 179,3 mm, Monitor size: 51. This is the size of the window in pixels and mm (Dock size) and the size of the monitor (Monitor size) in cm.
There is also the name of the form currently being designed, e.g. TD_Zak. The Data context class name field contains the name of the data source for the form.
The saving level of forms or their modifications is determined using a matrix. This matrix offers several levels for saving forms.
In the lower part of the Root tab form, the Modifications of Form section shows a table with a list of all modifications of the form. These modifications can be loaded using the Load modification button.
Tree tab
This tab displays the tree structure of the fragments of the form design.

Picture: Tree tab
Form design
The form design represents its current appearance. It consists of the fragments we have selected. We create the form design by placing components into it from the Form designer ribbon or directly using the Insert key.

Picture: Form design for the Sales Orders data module
Components in the form design can be selected using the left mouse button. We then continue working with the selected component. The selected component is surrounded by a red frame.

Picture: Selecting a regular component (Input)
When designing forms, we can also use the so-called Library fragments. These are fragments defined by the manufacturer. They consist of other fragments and their use makes it easier to create forms.
If we select a library fragment with the left mouse button, it is surrounded by a red dashed line.

Picture: Selecting a library fragment
Components inside a library fragment are surrounded by a blue frame when selected.

Picture: Selecting a component inside a library fragment
Working with the Form designer
The most common way to create new forms is by modifying them. However, the Form designer also allows you to design new forms completely from scratch, when we display a completely empty form and work with it, or we use the available template for a book.
Working on the Root tab
Modifying an existing form, or creating a new one, always starts with selecting the position for saving this form. This saving level is defined in the Form designer on the Root tab.
The position for saving form modifications is determined using a matrix. This matrix offers several positions for saving forms.

Picture: Matrix for selecting the form saving position
Forms are always designed for a user or a certain group of users and also for individual document states or their combination. The created form can look different, e.g. when viewing a record and when changing this record. It can also have a different appearance for individual users, groups or the entire company.
It is precisely the combination of the state of the data module (document) for which the form is intended and the saving level according to the end users of the form that we define in this matrix on the Root tab.
Form saving levels:
Factory |
Factory saving level of forms. Forms saved at this level are distributed together with IS K2. Editing forms and saving them to this level is possible only after entering the system password. |
Install |
Installation level. Forms saved in this position are specific to a particular K2 installation in a particular company. |
Group |
Saving level of forms for a group of users (e.g. economist, accountant, etc.) |
User |
At this level, we save forms or their modifications only for a specific IS K2 user. |
Data module states:
Global |
A form saved in the Global position is valid for all available states (Change of record, New record, View record). |
Browse |
Position for saving the form for the View record state. |
Ch+New |
Position for saving the form for the Change of record and New record states. |
Change |
Form for the Change of record state. |
New |
Position for saving the form for the New record state. |
The position for saving a form or its modification is thus determined by the combination of the data module state and the saving level according to the target group. Each form must have a selected saving position; a form cannot be saved to an empty position.
The position for saving the form is selected using the Left mouse button at the respective place in the matrix.

Picture: Options for manipulating a form modification
Description of the available options:
- Load matrix modification - loads the form modification saved in this position.
- Load - this is a dynamic option for loading a specific modification. If there are several modifications in the current position, e.g. for several users, a list of them with the Load option is displayed here. The main information about the modification is always shown as well, in the form load - User - AS, raster 33 [Size 33] [Order 3].
- Show content - this option displays the detail of the fragment, the detail of the modification, or of the full form in a new window.
- Delete - deletes the content of the selected position.
- Move - moves the modification between levels. A form for selecting the position for saving the moved form modification is displayed.
- Show content - this option displays the detail of the fragment, the detail of the modification, or of the full form in a new window.
- Create new modification - creates a new modification of the form. This option is used when, e.g., we start from the factory form and only want to adjust it somehow. In this case, the program does not save the entire form, but only its modifications.
- Save current view as - the complete form is saved as a new one. This option is used when designing a completely new form, when we do not want to use any aspects of the factory form and modifying it is not sufficient. With this option, we cut ourselves off from the factory form. The system then no longer saves only modifications, but a completely new form, a completely new XML in the specific position. All further modifications are then based on this position.
If a full form or its modification is saved in some position of the matrix, the corresponding icon is displayed there:
this icon means that a full form is saved in the position.
a form modification is saved in the matrix position with this icon.
this icon means that a modification or a full form is saved in the position that could be applied but is not currently available in this state.
several modifications are saved in this position.
Moving fragment modifications
Form modifications can be moved between the individual saving levels in the matrix. It is thus possible to create a modification, e.g. for a specific user, and after testing move it to a higher level, e.g. for a group of users or the entire installation.
A modification is moved by clicking the Left mouse button in the matrix on the specific modification to be moved and then using the Move option. A form for selecting the position for saving the moved modification is then displayed.

Picture: Form for saving the form modification
After selecting the saving level and confirming the form, the modification is moved to the selected position.
The function only moves the modification, it does not copy it. The modification can be moved to any place in the matrix; there is no check! So if a modification is created for the View mode state and is moved to the position for the New state, it will also be functional for the New record state.
When moving, keep in mind that the form is composed as the sum of modifications, and moving them may result in the loss of some modification. Therefore, for these purposes we recommend using a test version of K2 and then importing the tested result into the live version.
A modification cannot be moved to a place where another form modification is already saved.
Creating a new form (Book)
Besides form modifications, the user also has the option within the Form designer to create a form from a clean predefined template.
Using the New – New book option, we display a book template. Some aspects of forms that we use as standard are already preset here.

Picture: Template for a form design
Within this template, the form width is preset (12 + 3) and basic components are placed in it, such as the Record preview (Preview) or the tabs for the List of records and Basic data.
No name is automatically generated for this form, i.e. it is not primarily linked to a data source.
The correct procedure for designing forms in this way is therefore to display the template using the New – New book option, then select the position for saving the form and choose the Save current view as option there. Only after that, in the following form, select the name and thus ensure the connection to the data source.

Picture: Form for saving the form design
Creating a new form (Empty)
Another way to define a form is using the New – Empty option. In this case, a completely empty form without any template is displayed. The advantage of this method may be the fact that it is not necessary to accept any standard templates and it is thus possible to create a form completely from scratch.

Picture: Blank form displayed using the New – Empty option
The rest of the procedure is identical to creating a form using a template. First, it is necessary to display an empty form using the New – Empty option, then select the position for saving the form and Save current view as.
Creating a form modification
The usual and most frequently used way of creating forms is by modifying them.
We can modify existing standard forms according to requirements, or also forms automatically generated over a created data module, thereby designing their appearance essentially from the very beginning.
The usual procedure is that if a form has not yet been created for a data module created, e.g., using the Object designer, a form generated by the system is displayed, which we then edit.

Picture: Form generated by the system
In this case, we create the form design directly over a specific data module, whether standard or created using the Object designer. Another advantage of this procedure is that the system adds all available fields of the data source to the generated form, which we can then easily use and place in the form as required.
The procedure for form modifications is identical. It is always necessary to first select the position for saving the form and then edit it.
Principle of working with form elements (width and height)
Forms are composed of individual elements (components). Form elements can be Container or Simple elements. A new component is inserted into the form design using the Insert key. A list of all available fragments from which we choose is always displayed.

Picture: List of all available form fragments (elements)
The selection of the element is confirmed with the Enter key. The fragment is then inserted into the form design.
These components can be Container or Simple components. Container components include the Form, which is the basic and default component of the designer. They also include the Expander, Panel, Record preview (Preview) and Group box.
These components are then used to group other components, so other form elements can be placed in them. Container components usually contain so-called bands (columns). The picture Form component with an expander shows a form that is 15 columns wide and contains an expander 4 columns wide.

Picture: Form component with an expander
These bands are important for determining the width of components and also for the layout of other elements within these container components. In general, the number of columns of elements can be adjusted as needed using the key combination Shift + left arrow or Shift + right arrow. Information about the columns of form components is available in the designer Control panel on the Current tab. Buttons for adjusting the columns of form components are also available there.
Information about the width, i.e. the number of columns of a component, can be found on the Current tab in the Bands field.

Picture: Information about the component width
When we insert another element into any of these container components, it always occupies one column.
Example: We insert one element of the Input type into the Expander component, which has 4 columns.

Picture: Expander with one Input
If we insert another element into the component, it is placed in the next column (band) next to the first element.
Example: We insert a second element of the Input type into the Expander component, which has 4 columns.

Picture: Expander with two Inputs
If another element no longer fits into the component (there is no free column), it is placed below the first element.
Example: We insert a fifth element of the Input type into the Expander component, which has 4 columns.

Picture: Expander with five Inputs
Stretching the expander to 5 columns then moves element No. 5 to the new column.

Picture: Expander with five columns and Inputs
A form element that is inside a component can have more columns than the container component below it. In this case, the form element first stretches to the size of the container component and uses all its bands. If we keep adding columns, the element will not stretch any further beyond the container component, but will add further columns inside.
Just like the width of form components, their height can also be determined. The height can be set for a specific element using the key combination Shift + up arrow and Shift + down arrow. Information about the height of the element can be found in the Control panel on the Current tab in the Size field.

Picture: Information about the component height
If a form component has its height set to 0, it determines this height automatically according to its content. If we insert several other elements into this component, it sets its height so that everything is displayed. For elements of the Input type or, e.g., Grid, the height means the number of rows that the component will be able to display and that will be available to the user. It is the minimum number of rows for the component.