Book Contents

Book Index

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.

Book Contents

Book Index

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.

pic_6286

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.

pic_3812

Picture: Form designer

Book Contents

Book Index

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.

pic_5046

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.

Export/Import

This section contains all functions for importing or exporting the current form.

Administration

General functions, e.g. for managing pictures or fragments.

pic_5047

Picture: Book of pictures

pic_5048

Picture: Component with the information panel

Mode

Section containing functions for switching the available Form designer modes on/off.

pic_5049

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.

Clipboard

This section contains functions for copying components in the form design.

Fragment tab

This tab contains all functions and options for working with a component (fragment) within the form design.

pic_5050

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.

pic_5051

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.

pic_5052

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.

pic_5053

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.

Book Contents

Book Index

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.

pic_4349

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:

  • \:list - list of records of the data source
  • \:detail - detail of the data source, e.g. data of one sales order (\:detail\CDo).
  • \:parameters - data source of fields that are editable even in view mode.

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.

pic_909i, pic_910i

Buttons affecting the width of the selected fragment. The key combination Shift + right or left arrow can also be used for this function.

pic_911i, pic_912i

Buttons affecting the height of the selected fragment. Shortcut Shift + up or down arrow.

pic_913i, pic_914i

Shifting the fragment by one position. Shortcut Ctrl + right or left arrow.

pic_915i, pic_916i

Shifting the fragment to the first or last position within the container component.

pic_917i, pic_918i

Aligning the fragment to the top or bottom.

pic_919i

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.

pic_4350

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.

pic_4352

Picture: Tree tab

Book Contents

Book Index

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.

pic_4361

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.

pic_5061

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.

pic_5062

Picture: Selecting a library fragment

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

pic_5063

Picture: Selecting a component inside a library fragment

Book Contents

Book Index

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.

pic_5054

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.

pic_5055_2021

Picture: Options for manipulating a form modification

Description of the available options:

If a full form or its modification is saved in some position of the matrix, the corresponding icon is displayed there:

pic_906i this icon means that a full form is saved in the position.

pic_907i a form modification is saved in the matrix position with this icon.

pic_908i 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.

pic_1018i several modifications are saved in this position.

Book Contents

Book Index

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.

pic_5057

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.

pic_5056

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.

pic_5057

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.

pic_5058

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.

pic_5059

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.

pic_4487

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.

pic_5060

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.

pic_4358

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.

pic_4354

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.

pic_4355

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.

pic_4356

Picture: Expander with five Inputs

Stretching the expander to 5 columns then moves element No. 5 to the new column.

pic_4357

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.

pic_4359

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.