Book Contents

Book Index

Fragments book

The Fragments book is used to record all fragments in IS K2. The book can be displayed from the toolbar of the form designer using the pic_920i icon and then via the Show Fragments book option.

pic_4360

Picture: Fragments book

For each fragment, its most important properties are shown in the columns, i.e. what type of fragment it is, what size or level it has. If a fragment is imported and no change has been made to it via the designer, it is marked with the pic_921i icon in the Imported column. If changes are made to the fragment, it will not be marked in the Imported column.

In this book, fragments can be exported and imported in bulk. The records must always be marked first, and then the Export marked fragments or Import marked fragments function can be used. In both cases, we select the file storage.

Fragments can be displayed directly from this book using the Ctrl+F5 key combination. Their preview is displayed.

Book Contents

Book Index

Form elements

When creating and editing forms, we use individual fragments (form elements). These components have properties that we can set. The properties of form components can be displayed by selecting the given component and then pressing the F11 key or the Edit button, which can be found in the control panel on the Current tab.

pic_4362_2020.png

Picture: General properties of a fragment

The upper part of the form contains general properties that are the same for all fragments. The lower part contains properties that differ according to the type of the form component.

Description of fields:

DataContext

Data to which the component is bound. Here you can select the field to which the component will be data-bound.

Icon

Field for selecting the icon that will be displayed within the component. Some components do not display an icon (e.g. Input).

Order

Order of the element within the container component. The user then moves through the form fields in this order using the Tab key.

Name

Title of the component. This field can be formatted. Not only text but also the value of a field can thus be displayed as the title (e.g. [Zkr] displays the abbreviation). The field name must be given in square brackets.

Actions tree

This button runs the function for setting the tree structure of ribbon actions.

Width

Width of the component. Width of the fragment, i.e. how many columns this fragment occupies.

Save components state

Here you can influence the saving of the component state. Available options:

  • Yes - default option. The component saves its state to the form attributes.
  • No - the component does not save its state to the form attributes.
  • No including items - the state of this component and all other components it contains will not be saved to the form attributes.

Zoom factor

Zoom of the component. The default value is 100 %. With a value of 200 %, the component will be 2x larger than the others. It is a zoom relative to the default zoom setting. The default zoom can thus be further multiplied here.

Suppress Context

The component can be hidden under certain conditions. In this field, we enter the data context of the condition. Then it is necessary to select the comparison operator and the value.

Comparison operators

  • Equal - equal to
  • NotEqual - not equal to
  • Less - less than
  • Greater - greater than
  • LessOrEqual - less than or equal to
  • GreaterOrEqual - greater than or equal to
  • Contains - contains
  • Assigned - assigned (exists)
  • NotAssigned - not assigned (does not exist)

Suppress Value

Value for comparison for the purpose of suppressing the component.

Unique identification

Unique identifier of the component.

String Id

Identifier of the component.

Component Name

Name of the component in the visual environment. In most cases, this field remains empty. In that case, the component name is generated automatically. If it is necessary to change the component name (e.g. for automated testing), it can be modified in this field.

Alignment in cell

Alignment of the component within the whole cell (e.g. within a container component).

Horizontal Alignment

Alignment inside the component in the horizontal direction.

Vertical Alignment

Alignment inside the component in the vertical direction.

Book Contents

Book Index

Action

Each component can have actions set (e.g. Confirm, Cancel, etc.). It then depends on the type of component how it handles these actions. Actions can be attached to components in the fragment properties form on the Action tab.

pic_4363

Picture: Action tab

In the form, we find several buttons with which we add the required actions here. The menu of options for inserting actions can also be invoked with the Insert key. In this case, there is additionally the option to attach an AM report and a script.

pic_4367

Picture: Menu of actions

Add parametric action

We set a new action for the component using the Add parametric action button. A form for searching and selecting the required action is displayed.

pic_4364

Picture: Form for selecting an action

The form consists of 3 basic parts. The first part is Parameters of action display, the second part is Commands for component and the third is Action detail.

Parameters of action display

This section is used to filter the available actions. The Select command from component button is available here. After pressing this button, the actions are filtered and those actions that belong data-wise to the given component and also to the components and data modules under this component are displayed for selection. This button is always pressed by default!

By checking the TopLevelOnly field, we filter and display only the actions that belong only to this specific component and not to those under it.

With the Select command from datacontext button, we can filter a menu of actions that do not belong to the given component but can come from other data modules. These can then also be added to the component. Pressing this button displays another form for selecting the datacontext for filtering actions.

pic_4891

Picture: Form for selecting the datacontext

Description of fields:

Root

The option filters actions from the root of the data source (view). This is the basic component of the form.

:locators

This option filters the actions available within Locators, i.e. the fields by which we search.

:parameters

Option for displaying the setting fields (Business year, Warehouse). These fields are also available when viewing the record.

:detail

Filters actions from the detail of the data source.

:list

Filters the actions available on the list of the given data module.

Commonly used options are :Locators, :detail and :list. The other options are rather for advanced users, they are not used much in practice, and some actions included in them may not be functional in the given data module.

Selecting the given option filters and displays the available actions within the selected data context.

Commands for component

This part always displays a list of actions according to the setting in the Parameters of action display section. Actions can then be selected from this list.

We select an action for the component e.g. using the Enter key or the Select button. After the required action is selected from the list, a form for specifying the action is displayed.

pic_4366

Picture: Form for specifying the action

Description of available fields:

Command

Name of the command (action). Filled in automatically after the action is selected from the list.

Icon

In this field, an icon can be attached to the action. We select from the list of available icons.

Title

Name of the action.

Hint

Here you can enter text that is displayed when the mouse hovers over the icon with the added action. It serves as a hint.

Unique identification

Identifier for the given action.

Parameters

Field for adding action parameters. Actions can have parameters, which we enter in this field. Parameters are entered here using the Insert button. A list of available action parameters is displayed, from which we select.

In the next form, we then set the parameter value.

By pressing the OK button, we then insert this action.

Action detail

This lower part of the form contains detailed information about the action on which the cursor is placed in the Commands for component part.

Description of available fields:

Name

Name of the action.

Owner

Owner of the action (component, class). Suitable for programmers.

Group

The group to which the action belongs.

Key

Shortcut keys for invoking the given action.

Full identifier

Identifier of the action.

Bulk action

Flag indicating that this is a bulk action, i.e. it works in bulk on marked records.

Group of actions

Commands with this flag do not run an action directly but display a further submenu with a list of options.

IsContextCommand

Flag indicating whether this is a data module command or not. If the field is not checked, it is a presenter command. The option is for programmers.

Description

More detailed description of the action.

Add action group

We can set groups of actions for form components. Individual partial actions can be arranged into groups, where each group can contain any number of actions. The result is, for example, that the user can have several actions available under one button, which significantly saves space in the form.

We create a new group of actions using the Add action group button. A form is displayed in which we assign its partial actions to the group.

pic_4365

Picture: Form for creating a group of actions

Description of fields:

Icon

In this field, an icon can be attached to the group of actions. We select from the list of available icons.

Title

Name of the group of actions.

Hint

Here you can enter text that is displayed when the mouse hovers over the icon of the group of actions. It serves as a hint.

Add parametric action

Using this button, we add a partial action to the group. A form is displayed listing all available actions that can be used. A more detailed description is given in the chapter Add parametric action.

Add action group

A group of actions can contain another group of actions. We create such a group using this button.

Add action reference

Button for inserting a predefined action. A more detailed description is given in the chapter Add action reference.

New separator

Using this button, we insert a separator between actions or groups of actions.

Action

This field shows a list of all actions or groups of actions included in the group.

By pressing the OK button, we then save the defined group of actions.

Add action reference

Because the same groups of actions always have to be entered in some form components, some groups have already been predefined by the manufacturer. The Add action reference button displays a list of all predefined groups of actions. From this list, we can then add a group of actions to the given component.

pic_6329

Picture: List of action references

New separator

Using this button, we insert a separator between actions or groups of actions.

New AM action

This option can be found in the menu after pressing the Insert key on the Action tab. After selecting the New AM action option, a form for attaching an AM report to the form component is displayed.

pic_4368

Picture: Form for inserting an AM action

Description of fields:

Title

Name of this AM action.

Icon

Icon for this AM action.

Hint

Here you can enter text that is displayed when the mouse hovers over the icon of the AM action. It serves as a hint

DisplayStyle

The field is relevant only if we put the AM action into the ribbon. Then the display style of this action can be selected here.

Report

In this field, it is necessary to enter the name and path of the report we want to run within this action (e.g., ::\\DBNAME\Standard\Part_karta.AM).

Target

Target of the action. We select from the options:

  • Separated window - display of the report in a separate window.
  • Printer - printing of the report.
  • Export - export of the report.

Language

Print language.

Apply language

If this field is checked, the entered language is used for printing the report.

Name of printer

Name of the printer on which the report will be printed.

Export target

Export target of the report (application, file, e-mail, event).

Format

File format in which the report will be saved.

File name

File name under which the report will be saved.

By copying

Number of copies.

Collate

Works the same as "Collate" in the printer settings. When printing several copies of a document, the sheets are ordered so that they follow one another as in separate documents (page 1,2,3, 1,2,3).

Print on both sides

Double-sided printing.

Flip pages

The report is printed so that we can leaf through the pages from bottom to top.

Paper source

The tray from which the printer will take paper for printing.

Sign

Here we select from the options:

  • Never - the report is always printed without a signature.
  • Always - the report is always printed with a signature. This value requires that the certificate is installed and filled in either in the Signature, field or in the report parameter ("Sign"). If it is not, an error message is displayed when printing the report and the report is not printed without the electronic signature.
  • When the signature is specified - the report is always printed. If the certificate is entered in the Signature field or in the report parameter, the report is printed with a signature; if it is not entered, it is printed without a signature.

Signature

Here we select an installed certificate from a file.

Address to

If we send the report by e-mail, we enter the recipient's address here.

Subject

Subject of the e-mail.

Message

Text of the e-mail.

Display email dialogue

Displays the detail of the e-mail message before sending.

Parameters

On this tab, we can set parameters for the AM report. We select from the list of available parameters.

New script action

Using this action, we can attach a script to a form component and then run it. We create a new script action using the Insert key on the Action tab via the New script action option. In the displayed form, we then set up the script action.

pic_4369

Picture: Form for inserting a script action

Description of fields:

Title

Name of the script action.

Icon

Icon for this script action.

Hint

Here you can enter text that is displayed when the mouse hovers over the icon of the script action. It serves as a hint.

DisplayStyle

The field is relevant only if we put the script action into the ribbon. Then the display style of this action can be selected here.

Script

In this field, it is necessary to enter the name and path of the script we want to run within this action (e.g., ::\\DBNAME\Standard\ConvertionAdresses.PAS).

Parameters

In this field, we can set the parameters of the selected script. We select from the list of available parameters.

Row context actions

Actions can be set for table rows, records in the tree view of a table and for buttons in a list (e.g. in the menu of scripts and reports (F9)). In this way, a whole collection of actions can be set, which will then form the context menu over the record. It is thus possible to create a completely different context menu, which will always be displayed by clicking the right mouse button. This context menu then replaces the standard generated menu.

The function is available for the components Table (Grid), Tree table (Tree view) and Button list (List view).

We set the actions in the fragment properties form on the Action tab. The Row context actions button is available here. The button displays a form in which the row context actions can be set.

pic_7047

Picture: Row context menu form

The same rules apply in this form as when setting actions for other components. There are several buttons with which we add the required actions here. They are as follows:

The menu of options for inserting actions can also be invoked with the Insert key. In this case, there is additionally the option to attach an AM report and a script.

pic_7048

Picture: Sales Orders book with a custom row context menu

Book Contents

Book Index

Container components

These components are characterized by the fact that other form elements can be inserted into them.

Book Contents

Book Index

Form (Form, View)

This is the basic component for forms. This component cannot be deleted from the designer; it is always the default one. It also cannot be inserted into the form design separately. Nothing can be displayed in the form without using the Form component as the basis.

pic_10825

Picture: Properties of the Form component

Description of properties:

Horizontal lines

Display of horizontal lines between components in the expander:

  • None - lines will not be displayed in the Expander.
  • First - a line is displayed only under the first component in the expander.
  • Last - lines are displayed only between the last components in the expander.
  • All - lines are displayed under each component in the expander.

Vertical lines

Display of vertical lines between components in the expander:

  • None - vertical lines will not be displayed in the expander.
  • First - a vertical line is displayed only after the first component in the expander.
  • Last - lines are displayed only between the last components in the expander.
  • All - lines are displayed between all components in the expander.

ResponsiveType

Setting of the component's responsiveness. The option is intended only for web K2. Options:

  • None - responsiveness is determined by the container in which the component is placed.
  • Yes - the component is responsive and adapts to the monitor size.
  • No - the component is not responsive.

Scroll

Turns on the scrolling option of the expander. Enables scrolling if the content of the expander is larger.

Base cell width to height ratio

The value given here expresses the ratio of the width and height of the basic unoccupied cell (slot for inserting other components). So if, for example, the number 5 is given here, it means that the column (slot) is 5 times longer than it is wide. The height of the slot then adapts to the inserted component.

AutoUpdateInterval

Number of milliseconds after which the form will be refreshed (the F3 key is pressed on the form). Used e.g. for the chat form. This option can also be used for mobile terminals in combination with the AutoUpdateCommand property. The forms of mobile terminals will then be refreshed at the interval entered here.

AutoUpdateCommand

Action for refreshing the form. If this field is not filled in, the "UpdateAllCOMMAND" action is run automatically. Another action for refreshing the form can be entered here. For mobile terminal forms, "MTBaseFixActiveControlCOMMAND" can be used.

EnableAUCommandIfDBNotAllowed

Allows calling the auto update command even if database operations are disabled. This is an advanced option. The command is called e.g. even when the progress indicator (tube) is running.

Focused datacontext

This property is suitable for mobile terminal forms. In this field, it is necessary to enter the data context (Full data context) of the focused field, i.e. the field in which the cursor is to be placed on the form. For mobile terminals, this is the input field for entering a barcode using a reader. Once we set this property by filling in the "Full data context" of the reader input field, it is ensured that this field will always be active on the form and the cursor will be placed there.

Expander (Drop-down list)

The expander is a collapsible panel suitable for grouping fields.

pic_4381

Picture: Example of using the Expander component

pic_4382

Picture: Properties of the Expander component

Description of properties:

Collapsed title (As string)

Title for the collapsed expander. Formatting using square brackets is possible in this field, i.e. the value of a field can be displayed here (e.g. [Zkr] displays the abbreviation).

Several rules apply to this field:

  • If there is only a value in square brackets in this field, the value from the Title field + the value from the As string field is displayed as the heading of the collapsed expander.
  • If there is text + a field in square brackets in this field, the Title field is ignored and the heading of the collapsed expander will be based only on the As string field.

Horizontal lines

Display of horizontal lines between components in the expander:

  • None - lines will not be displayed in the Expander.
  • First - a line is displayed only under the first component in the expander.
  • Last - lines are displayed only between the last components in the expander.
  • All - lines are displayed under each component in the expander.

Vertical lines

Display of vertical lines between components in the expander:

  • None - vertical lines will not be displayed in the expander.
  • First - a vertical line is displayed only after the first component in the expander.
  • Last - lines are displayed only between the last components in the expander.
  • All - lines are displayed between all components in the expander.

Size

Height (number of lines) of the component. If not entered, 0 (automatic).

Scroll

Turns on the scrolling option of the expander. Enables scrolling if the content of the expander is larger.

Lite Header

Switches the expander header to a different display. The header is then not blue and may be less distracting for the user.

Detachable

By checking this field, we set the component as floating. The component can then be detached from the form and worked with as a separate form.

Group box

A component suitable for separating blocks of fields on the form. A Group box cannot display actions.

pic_4383

Picture: Example of using the Group box component

pic_4384

Picture: Properties of the Group box component

Description of properties:

Horizontal lines

Display of horizontal lines between components in the group box:

  • None - lines will not be displayed in the group box.
  • First - a line is displayed only under the first component in the group box.
  • Last - lines are displayed only between the last components in the group box.
  • All - lines are displayed under each component in the group box.

Vertical lines

Display of vertical lines between components in the group box:

  • None - vertical lines will not be displayed in the group box.
  • First - a vertical line is displayed only after the first component in the group box.
  • Last - lines are displayed only between the last components in the group box.
  • All - lines are displayed between all components in the group box.

Size

Height (number of lines) of the component. If not entered, 0 (automatic).

Scroll

Turns on the scrolling option of the component.

Panel

This is the basic organizational unit of forms, used to group fields (other components). Unlike e.g. the Expander or Group box, this component has no header. A Panel cannot display actions.

pic_4469

Picture: Properties of the Panel component

Description of properties:

Horizontal lines

Display of horizontal lines between components in the panel:

  • None - lines will not be displayed in the panel.
  • First - a line is displayed only under the first component in the panel.
  • Last - lines are displayed only between the last components in the panel.
  • All - lines are displayed under each component in the panel.

Vertical lines

Display of vertical lines between components in the panel:

  • None - vertical lines will not be displayed in the panel.
  • First - a vertical line is displayed only after the first component in the panel.
  • Last - lines are displayed only between the last components in the panel.
  • All - lines are displayed between all components in the panel.

Size

Height (number of lines) of the component. If not entered, 0 (automatic).

Scroll

Turns on the scrolling option of the component.

Preview (Record preview)

A component used to display a preview of records. Its title can be placed in the header of this component. We do this in the Title field. Formatting is possible in this field. The data context of any field can be entered in square brackets, and the value from that field is then displayed in the component header.

pic_4394

Picture: Example of using the Preview component

pic_4395

Picture: Properties of the Preview fragment

Description of properties:

Horizontal lines

Display of horizontal lines between components in the preview:

  • None - lines will not be displayed in the preview.
  • First - a line is displayed only under the first component in the preview.
  • Last - lines are displayed only between the last components in the preview.
  • All - lines are displayed under each component in the preview.

Vertical lines

Display of vertical lines between components in the preview:

  • None - vertical lines will not be displayed in the preview.
  • First - a vertical line is displayed only after the first component in the preview.
  • Last - lines are displayed only between the last components in the preview.
  • All - lines are displayed between all components in the preview.

Size

Height (number of lines) of the component. If not entered, 0 (automatic).

Scroll

Turns on the scrolling option of the component.

Book Contents

Book Index

Simple components

Book Contents

Book Index

Ribbon

A component for creating the basic toolbar of forms. We insert actions, or AM actions or script actions, into the ribbon and arrange them into tabs and, within the tabs, into sections.

pic_5271

Picture: Use of the Ribbon component

pic_5270

Picture: Properties of the Ribbon component

Description of properties:

Size

Height of the component. In the case of the ribbon, the height specifies the number of icons that can be arranged one below the other in the ribbon.

TileCaptionLineCount

Number of lines for the description of the action (icon). Applies only to a tile.

ShowF9Button

if this option is checked, the pic_1031i icon is displayed in the ribbon header for running the classic F9 with the menu of reports or scripts.

ShowMenuButton

If this option is checked, the pic_1032i icon for running the main menu is displayed in the ribbon header. It then contains a list of all functions related to the given data module.

ShowSectionCaption

Displays the names of individual sections in the ribbon.

Actions tree

Actions can also be attached to individual components using the Actions tree function. The function is primarily intended for the Ribbon component, which is the component grouping all available actions for the data module. Using the actions tree, actions can be arranged into levels in this component. They are:

We run the actions tree using the pic_1033i button, which is available in the form listing the properties of each component. After it is run, the form for defining the ribbon actions tree is always displayed.

pic_5272

Picture: Form for defining the actions tree

The upper part of the form contains a preview of the ribbon. It is the actual current appearance of the component. This way, the correctness of the procedure can be verified immediately. The left part of the Actions tree form contains the tree structure of the actions added to the component. The right part contains several buttons for working with the actions tree and for inserting specific elements into the tree.

Description of the available options:

Bookmark

Button for creating a new tab in the ribbon.

Section

Button for inserting a new section on a ribbon tab.

Action

Button for inserting a new action into a ribbon section. After pressing the button, a form for selecting the required action is displayed.

Report

Button for inserting a report (AM action).

Script

Button for inserting a script (script action).

Group

Inserts a button that also has an arrow icon into the ribbon section. Further actions can then be inserted into this group. Pressing this button always displays a context menu with the inserted actions. By arranging actions into these groups, space in the ribbon can be saved.

Wrap text

Breaks the column in which individual icons (actions) are arranged one below the other in the ribbon. The next icon is then inserted into the next column.

Separator

Inserts a separator between actions or groups of actions. The ribbon does not display it; this component does not work with the separator. Other components do.

Reference

Option for inserting an action reference. These are actions predefined by the manufacturer.

Button type

In this section, we select the button type for the given action, i.e. how the action will look within the ribbon. Options:

  • Tile - a large icon in the form of a tile with the description shown at the bottom, e.g. pic_1034i.
  • Button - a small icon with the description displayed, e.g.pic_1035i.
  • Icon - only an icon without a description, e.g. pic_1036i.

Name

Name of the actions tree item.

Edit

Opens the respective tree item for editing.

Remove

Deletes the actions tree item.

The principle of working with the actions tree is that a section must also be inserted on a new tab. Only then can individual actions, references, groups of actions, etc. be inserted into this section.

As soon as we select the required action (in the same way as when entering actions for other components), a form for setting the display parameters of the action in the ribbon is displayed.

pic_5273

Picture: Form for specifying the action

Description of the available options:

CommandId

The action we insert into the ribbon.

GlyphId

In this field, an icon can be attached to the action. We select from the list of available icons.

Title

The name that will be displayed for the given action in the ribbon.

Hint

Help text. This text is displayed when the mouse cursor hovers over the button (action).

DisplayStyle

The button type for the given action, i.e. how the action will look within the ribbon. Options:

  • ButtonTile - large icon.
  • ButtonLine - small icon with a description.
  • ButtonSmall - small icon without a description.

Parameters

Some actions can have parameters. They can be entered here.

Within a section in the ribbon, actions are arranged one below the other. The number of actions arranged one below the other in a section is given by the height of the component. If the ribbon has the height (Size) set to 3, it displays 3 actions placed one below the other; if a fourth action is added here, it is inserted into the next column. This can be seen in the picture "Ribbon tab with an inserted section".

pic_5274

Picture: Ribbon tab with an inserted action

If we include in a ribbon section an action to which we do not attach an icon, the initial letter of the action is displayed in place of the icon. The condition is that this action does not have an icon assigned implicitly by the program.

Actions can be moved between individual nodes in the tree using Drag and Drop. Actions cannot be moved if they are included in the ribbon as a reference to an action. Copying in the tree is again done using Drag and Drop in combination with the Ctrl key.

Ribbon for a data context

The Ribbon component can be set so that any tab is visible only for a specific data context.

This setting can be made in the ribbon actions tree in the form for setting the ribbon tab, in the ForDataContext field. We display the form by selecting the ribbon tab and pressing the Edit button.

pic_5275

Picture: Form for setting the data context of the ribbon

The given ribbon tab will be visible only for the data context entered here.

Book Contents

Book Index

Label

Label is a component we use to display data (values). A label cannot be edited. A label can display 4 different types of text. They are Title, Prefix, Value and Suffix.

For the Prefix, Suffix and Value, it is possible to enter a DataContext or use formatting with square brackets. For these fields, their display as a picture can be forced using the ^ character or, conversely, as text using the ~ character.

pic_4370

Picture: Example of using the Label component

pic_4371

Picture: Properties of the Label component

Description of properties:

With Implicit Link

The component displays the implicit (most important) link of the data field. For example, if we use the ContactPersonId field (contact person number) as the DataContext, the component does not display the number but the Surname.

Title Display Mode

Field for setting the format of the component title. The title can be displayed e.g. in bold.

Value Display mode

Format for the value in the given field (component).

Prefix Data Context

Here we set the data context of the field whose value can be displayed as a prefix, i.e. as text before the value in the component.

Prefix Text

Here you can enter any text that is displayed as a prefix. The text will be displayed before the value in the component.

Formatting is possible in this field. The data context of any field can be entered in square brackets, and the value from that field is then also displayed within the prefix

The Prefix Data Context and Prefix Text fields can be combined. Both values from these fields are displayed as the prefix (text before the value).

Sufix Data Context

Here we set the data context of the field whose value can be displayed as a suffix, i.e. as text after the value in the component.

Sufix Text

Here you can enter any text that is displayed as a suffix. The text will be displayed after the value in the component.

Formatting is also possible in this field. The data context of any field can be entered in square brackets, and the value from that field is then displayed within the suffix.

The Sufix Data Context and Sufix Text fields can be combined. Both values from these fields are displayed as the suffix (text after the value).

Picture

Formatting of the value in the component (e.g. number of decimal places).

Lines Count

Number of lines of the Label component.

Orientation

Orientation of the title and value of the component:

  • Horizontal - the title and value are next to each other in a row.
  • Vertical - the title is placed above the component (above the value).

Bottom Line

If the field is checked, a line is displayed under the component in the form.

Show Colon

Adds a colon after the component title.

Stretch Image

Stretches the picture (bitmap) over the whole available area.

Book Contents

Book Index

Input

Input is a component that allows data to be entered.

pic_4372

Picture: Example of using the Input component

pic_4373

Picture: Properties of the Input component

Description of properties:

With Implicit Link

The component displays the implicit (most important) link of the data field. For example, if we use the ContactPersonId field (contact person number) as the DataContext, the component does not display the number but the Surname.

Tab Stop

Sets the focus for the given field. When moving through the fields, the focus will also pass through this field.

Prefix Data Context

Here we set the data context of the field whose value can be displayed as a prefix, i.e. as text before the value in the component.

Prefix text

Here you can enter any text that is displayed as a prefix. The text will be displayed before the value in the component.

Formatting is possible in this field. The data context of any field can be entered in square brackets, and the value from that field is then also displayed within the prefix.

The Prefix Data Context and Prefix Text fields can be combined. Both values from these fields are displayed as the prefix (text before the value).

Sufix Data Context

Here we set the data context of the field whose value can be displayed as a suffix, i.e. as text after the value in the component.

Sufix text

Here you can enter any text that is displayed as a suffix. The text will be displayed after the value in the component.

Formatting is also possible in this field. The data context of any field can be entered in square brackets, and the value from that field is then displayed within the suffix.

The Sufix Data Context and Sufix Text fields can be combined. Both values from these fields are displayed as the suffix (text after the value).

Picture

Formatting of the value in the component (e.g. number of decimal places).

Lines count

Number of lines of the component.

Watermark

Text that is displayed as a background hint in the component (in the field in the form).

Show Label

This field can be used to influence the display of the component title. If this field is checked, the title is displayed.

Show Frame

Display of a frame around the component. If the field is checked, the frame is displayed.

Disable Label Highlight

The change indication will not be displayed for the given component. In the event of a change, the field will not be highlighted in blue.

Is Password

If this field is checked, asterisks are displayed in the component instead of the value. Suitable for entering a password.

Book Contents

Book Index

Read-only text box

This is a component identical to the Input component, but nothing can be written into it. It is only for displaying data (read-only).

Book Contents

Book Index

Check box

Check box. This component supports only a data field of the boolean type.

pic_4374

Picture: Form with Check boxes used

pic_4375

Picture: Properties of the Check box component

Description of properties:

Tab Stop

Sets the focus for the given field. When moving through the fields, the focus will also pass through this field.

Lines Count

Number of lines of the component.

Book Contents

Book Index

Grid data

A component suitable for displaying a table of records. At the top is the header (blue bar), in the middle is the data part, and at the bottom are icons expressing e.g. the status of the table.

pic_4377

Picture: Example of using the Grid data component

pic_4378_2022_03

Picture: Properties of the Grid data component

Description of properties:

Tab Stop

Sets the focus for the given field. When moving through the fields, the focus will also pass through this field.

Explicit columns

In this field, columns for the grid can be entered explicitly. If we assign columns to the grid in this way, they can no longer be changed by the user in the grid. We enter the column names separated by commas here.

Minimum row count

Minimum number of rows the component displays. If the table contains more than this minimum number, the component will scroll.

InLineMode

Option for turning on row editing of the grid:

  • ByUser - row editing can be turned on or off by the user for the given grid.
  • Always - row editing is permanently turned on for the given grid.
  • Never - row editing is turned off for the grid.

RowHeighMultiplier

Number of lines that one table row will contain. The property can be used when more text needs to be displayed in the table rows.

Default Cell Link

If this field is checked, click-throughs to records via the link work for the given grid.

Cell Link Command

Field for adding a custom command for clicking through to records.

AcceptRowCommand

Command (action) that is run after pressing Enter or after double-clicking on a row in the table.

Lite Header

Switches the grid header to a different display. The header is then not blue and may be less distracting for the user.

Hide header

Hides the header (blue bar) of the grid.

Hide footer

Hides the footer of the grid.

Hide column header

Hides the column headers (headings) of the grid.

ImplicitColumnsOnly

If this field is checked, no further columns can be added to the table. They cannot be removed either. Only the default columns will always be displayed here.

Table settings in fragments

The table of records and its complete settings can be defined in the form designer, and these settings can then be saved within the fragment. This function makes it possible to set the layout and appearance of the table, conditional formatting, sorting or column formatting.

We make the table settings in fragments in the form containing all properties of the component, on the Explicit table settings tab. This form is displayed using the F11 key or the Edit button located in the designer control panel on the Current tab. The Explicit table settings tab is then displayed only for the Table (Grid) component. It is not available for other components.

pic_7052

Picture: Fragment properties - Explicit table settings tab

The principles of working in this form are the same as for user settings and editing of columns in universal forms. We recommend reading the detailed description given in the chapter Working with columns.

On this tab, the column settings can be created completely from scratch or modified afterwards. The fields we insert here will be displayed as columns of the given table, while when displaying columns in a specific table, the system proceeds in the order 1. factory settings given by the program, 2. explicit columns listed in the general properties of the fragment, 3. table settings in fragments. So if we set the respective fields on the Explicit table settings tab, they will be displayed as columns in the given table. The condition is that no other explicit columns are listed in the general properties of the fragment. The advantage of such a setting is the possibility of creating a table completely from scratch with all formatting options and saving this configuration in a specific fragment.

The Explicit table settings tab contains 3 subtabs. On the first of them, the Columns tab, we define the table columns, their order and some other properties.

Description of properties:

Fit columns

If this field 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.

Number of frozen columns

Here we specify the number of columns that will be frozen. These columns will always be visible and will not move off the screen when scrolling. The specified number of columns from the beginning of the list is always frozen.

Display aggregations

Displays the panel for the results of calculated aggregations.

We add individual columns here using the Insert key. A list of all available fields of the given data module is always displayed. From this list, we can select fields and add them to the list of table fields (columns).

Using the Enter key or by double-clicking, the given field (column) in the list can be opened to display its detailed properties.

pic_7053

Picture: Column properties

Here you can set some other properties for a specific column, such as the name, width or alignment. Furthermore, on the Conditional formatting tab, we can set conditions for colouring the columns. The Formatted column tab then offers wide options for formatting table columns.

The second tab of the explicit table settings is the Sorting tab. Here we can set the sorting in the table. We do this by inserting on this tab the column or columns by which the table will be sorted. For each column, the sort direction can also be set, i.e. descending or ascending.

On the last tab, Conditional row formatting, we can define conditions for formatting table rows. Conditions for colouring rows or the font format can be set here.

Book Contents

Book Index

Grid data simple

This is a simple grid that contains neither a header nor a footer. The properties of this component are the same as for the Data grid.

Book Contents

Book Index

Tab control

This is a component forming tabs in the horizontal direction.

pic_4385

Picture: Example of using the Tab control component

pic_4386

Picture: Properties of the Tab control component

Description of properties:

Size

Height (number of lines) of the component. If not entered, 0 (automatic).

Icon position

Position of the icon relative to the tab name:

  • Left - the icon is placed on the left.
  • Top - the icon is placed at the top above the tab label.
  • Right - the icon is placed on the right.
  • Bottom - the icon is placed at the bottom below the tab label.
  • Center - the icon is placed in the centre.

Accesorss Stretch

The individual tabs of the component are stretched across the whole screen. They make maximum use of the space.

Display icons

If this field is checked, icons are displayed in the tab headers for better orientation in the tabs. Otherwise, only text is shown here.

Book Contents

Book Index

Tab control view

This component forms tabs in the vertical direction. It is used for basic structuring.

pic_4387

Picture: Example of using the Tab control view component

The Tab control view component has the same properties as the Tab control.

Book Contents

Book Index

Splitter (Distribution list)

The Splitter component is used for horizontal or vertical division of areas. It is a divider that can be moved. The orientation and the default ratio can be set for this component. The existence of a Splitter in the form can be recognized by the icon with dots.

pic_4215

Picture: Example of using the Splitter component

pic_4388

Picture: Properties of the Splitter component

Description of properties:

Size

Height (number of lines) of the component. If not entered, 0 (automatic).

Default ratio

Default ratio for the splitter areas.

Orientation

Orientation of the component. The direction in which the form closes after clicking the divider icon.

  • Left - the form closes to the left. The left area of the splitter is closed.
  • Right - the form closes to the right. The right area of the splitter is closed.
  • Top - the form closes upwards. The upper area of the splitter is closed.
  • Bottom - the form closes downwards. The lower area of the splitter is closed.

Book Contents

Book Index

Button (Button)

A component for using a button in the form. For this component, we usually define an action (on the Action tab) that is run after the button is pressed. The component supports the use of several actions, which are displayed according to the type set in the MultiActionsType field.

pic_10832

Picture: Properties of the Button component

Description of properties:

Tab Stop

Sets the focus for the button. When moving through the fields, the focus will pass through this button.

Command

Name of the action that will be run by the given button. For a button with several actions defined, it is the first defined action in order.

MultiActionsType

Type of action support for the button.

  • Main action only: A button with the option to define only one action. The action is run after clicking the button.
  • Context menu: A button supporting the definition of several actions. The first action in order defines the button; the other actions are displayed by right-clicking the button.
  • Multi-item menu without the main action: A button supporting the definition of several actions. The first action in order defines the button; the other actions are displayed after expanding the arrow on the button.
  • Multi-item menu: A button supporting the definition of several actions. The first action in order defines the button; the other actions, including the first (main) action, are displayed after expanding the arrow on the button.

Size

Height of the button.

Icon position

If the action has an icon, it is always displayed inside the button. In this field, the position of the icon can be specified:

  • Left - the icon is placed on the left.
  • Top - the icon is placed at the top above the button title.
  • Right - the icon is placed on the right.
  • Bottom - the icon is placed at the bottom below the button title.
  • Center - the icon is placed in the centre of the button.

Decorate

In this field, the button colour can be defined.

  • Error - red.
  • HighLight - green.
  • Content - grey.
  • ContentSuppress - grey in combination with a suppressed button title.
  • Transparent - transparent.
  • TransparentBold - transparent in combination with a bold button title.

Fill the entire cell width

If this field is checked, the button makes maximum use of its space. It fills the whole width of the cell. If the field is not checked, the button is square. It shrinks.

Display title of action

If this field is checked, the title of the action being run is displayed inside the button. For a button with several actions defined, it is the first defined action in order.

Display icon

If this field is checked, the icon assigned to the action is also displayed within the button. For a button with several actions defined, it is the first defined action in order.

Book Contents

Book Index

Combo box (simple drop-down list)

A component for a simple drop-down list. It cannot be written into. It has similar properties to the Input component.

pic_4390

Picture: Properties of the Combo box component

Description of properties:

As String

In this field, the contents of the combo box can be defined. Individual items must be separated by a semicolon (e.g. Contents 1; Contents 2; Contents 3). The combo box will then offer only the values given here.

With Implicit Link

The component displays the implicit (most important) link of the data field. For example, if we use the ContactPersonId field (contact person number) as the DataContext, the component does not display the number but the Surname.

Tab Stop

Sets the focus for the given field. When moving through the fields, the focus will also pass through this field.

Prefix Data Context

Here we set the data context of the field whose value can be displayed as a prefix, i.e. as text before the value in the component.

Prefix text

Here you can enter any text that is displayed as a prefix. The text will be displayed before the value in the component.

Formatting is possible in this field. The data context of any field can be entered in square brackets, and the value from that field is then also displayed within the prefix.

The Prefix Data Context and Prefix Text fields can be combined. Both values from these fields are displayed as the prefix (text before the value).

Sufix Data Context

Here we set the data context of the field whose value can be displayed as a suffix, i.e. as text after the value in the component.

Sufix text

Here you can enter any text that is displayed as a suffix. The text will be displayed after the value in the component.

Formatting is also possible in this field. The data context of any field can be entered in square brackets, and the value from that field is then displayed within the suffix.

The Sufix Data Context and Sufix Text fields can be combined. Both values from these fields are displayed as the suffix (text after the value).

Picture

Formatting of the value in the component (e.g. number of decimal places).

Lines count

Number of lines of the component.

Watermark

Text that is displayed as a background hint in the component (in the field in the form).

Show Label

This field can be used to influence the display of the component title. If this field is checked, the title is displayed.

Show Frame

Display of a frame around the component. If the field is checked, the frame is displayed.

Disable Label Highlight

The change indication will not be displayed for the given component. In the event of a change, the field will not be highlighted in blue.

Is Password

If this field is checked, asterisks are displayed in the component instead of the value. Suitable for entering a password.

Book Contents

Book Index

Map

A component for displaying a map according to an address or coordinates.

pic_4391

Picture: Example of using the Map component

Description of properties:

Size

Height (number of lines) of the component. With the value 0, the height is automatic.

Data is coordinates

Yes - the data source for displaying the place on the map is the entered coordinates. As the Data Context, we enter the field with the coordinates.

No - the data source for displaying the place on the map is the address. As the Data Context, we enter the field with the address number here.

In this component in web K2, the map is displayed via OpenStreetMap.

In web K2, it is also possible to display maps via GoogleMaps, provided the GoogleApiKey is filled in on the client.

Displaying Google Maps is free of charge. To set up this map, you need to create an API key and enable "Maps Embed API" for the project in the "APIs & Services" section.

Book Contents

Book Index

Empty space

This is an empty component used for organizing form elements and their visualization. Inserting this component between two elements creates a gap (empty space) in the form.

pic_4392

Picture: Example of using the Empty space component

Description of properties:

Size

Height (number of lines) of the component. If not entered, 0 (automatic).

Book Contents

Book Index

Lookup (Selection table)

A component for an offer table. An important property of this component is the option to select the type of offer table.

pic_4393

Picture: Properties of the Lookup component

Description of properties:

With Implicit Link

The component displays the implicit (most important) link of the data field. For example, if we use the ContactPersonId field (contact person number) as the DataContext, the component does not display the number but the Surname.

Tab Stop

Sets the focus for the given field. When moving through the fields, the focus will also pass through this field.

Prefix Data Context

Here we set the data context of the field whose value can be displayed as a prefix, i.e. as text before the value in the component.

Prefix text

Here you can enter any text that is displayed as a prefix. The text will be displayed before the value in the component.

Formatting is possible in this field. The data context of any field can be entered in square brackets, and the value from that field is then also displayed within the prefix

The Prefix Data Context and Prefix Text fields can be combined. Both values from these fields are displayed as the prefix (text before the value).

Sufix Data Context

Here we set the data context of the field whose value can be displayed as a suffix, i.e. as text after the value in the component.

Sufix text

Here you can enter any text that is displayed as a suffix. The text will be displayed after the value in the component.

Formatting is also possible in this field. The data context of any field can be entered in square brackets, and the value from that field is then displayed within the suffix.

The Sufix Data Context and Sufix Text fields can be combined. Both values from these fields are displayed as the suffix (text after the value).

Picture

Formatting of the value in the component (e.g. number of decimal places).

Lines count

Number of lines of the component.

Watermark

Text that is displayed as a background hint in the component (in the field in the form).

Show Label

This field can be used to influence the display of the component title. If this field is checked, the title is displayed.

Show Frame

Display of a frame around the component. If the field is checked, the frame is displayed.

Disable Label Highlight

The change indication will not be displayed for the given component. In the event of a change, the field will not be highlighted in blue.

Is Password

If this field is checked, asterisks are displayed in the component instead of the value. Suitable for entering a password.

Type of lookup

Here you can force the type of Lookup (offer table) that will be opened. Available options:

  • ClassicLookup - display of the book in which the required record can be searched for.
  • SimpleLookup - simplified list.
  • SimpleLookupWithDataGrid - if this option is entered, the fields that will be in the offer table can be specified.
  • Suggestions - autocomplete.
  • ComboStyleLookup - simple drop-down list. A Lookup in the style of a Combo box.

List of fields in lookup separated by comma

Here you can enter a list of fields (columns) that will be visible in the offer table. Applies to all lookup types.

Book Contents

Book Index

Menu main

This is a toolbar to which actions can be attached. We use the component as the toolbar of modules.

pic_4396

Picture: Example of using the Menu main component

Description of properties:

Size

Height (number of lines) of the component. If not entered, 0 (automatic).

Book Contents

Book Index

Dashboard

A component for inserting a dashboard into a form. A dashboard placed in a form can be dynamic, i.e. it can always be updated according to the record the user currently has loaded.

The example pictures are from the application of a dashboard showing the development of stock balances in the form of the Article module. The Article data module must therefore pass the article number and the set warehouse to the dashboard for its full functionality.

pic_10783

Picture: Properties of the Dashboard component

Description of properties:

Dashboard

The dashboard that will be placed in the component. We make the selection by pressing the Selection button, which displays a list of all defined dashboards.

IsAbbrFieldProperty

A system field that is activated only in the factory Dashboards module for the correct display of the current dashboard. It has no meaning for customer applications of dashboards in other K2 modules.

DashboardVisualMode

Setting of the visual mode of the dashboard:

  • StandAloneDashboard - if this option is set, the data module does not affect the placed dashboard. When browsing records, the dashboard will not change (update).
  • DashboardIntegrated - the dashboard tries to find the mapping and uses the Integration parameters. In this mode, the dashboard can be updated according to the record on which the user is currently positioned. The dashboard filters are prefilled.

IntegrationState

This setting affects the display of the dashboard in the form. This setting is valid for dashboards with the layout Filters at the top, containers horizontally below them.

  • isNone or FullSize - the whole dashboard is displayed including filters.
  • HiddenFilterContainer - the container with filters will be hidden in the component.

If we want the dashboard to react dynamically to a change of records, it must be linked with the data module using its Integration parameters. The dashboard must therefore have these integration parameters already created before it is used in the data module form. We do this directly in the Dashboards book. We enter the editing of the required dashboard and on the Integration parameters tab, we have the integration parameters created using the Fill in the integration parameters button. The integration parameters are created according to the filters defined in the given dashboard.

Now we link the individual parameters (dashboard filters) and the fields of the data module. We insert integration parameters with the Insert key into the Integration parameters table and select from the data module the respective field that will pass the value to the given parameter. If the required field is not published for display among the data module fields, we write its name directly (this is the case here with the "InformationWarehouseIdCalc" field).

In the example given, we therefore pass the article number to the dashboard in the parameter for the Article dimension, and the information warehouse number in the parameter for the Warehouse dimension.

pic_10784

Picture: Part of the form with the linkage of data module fields and dashboard integration parameters

pic_10785

Picture: Dashboard showing stock balances integrated into the Article module - the dashboard module passes the current article card and the set warehouse

Book Contents

Book Index

Locator

The search field (locator) is always part of the table header (blue bar). Using this component, it can be placed anywhere.

pic_10325

Picture: Properties of the Locator component

pic_4397

Picture: Standard use of the Locator component above a list of records

pic_10326

Picture: Form modification with a search field in the Preview panel for searching outside the List tab as well

Description of properties:

OnlyDefaultField

Yes: The search field can search only by the field that is defined as the main one.

No: It is possible to switch between multiple fields for searching. The fields by which the search field searches are given by the data source on which the form is built.

ShowLabels

If this field is checked, the component title is displayed.

ShowFrames

By checking this field, we display the component frame.

EnterBehavior

EscBehavior

Behaviour of the form after leaving the search field with the Enter key (i.e. after confirming the entered value) and after leaving the search field with the Esc key.

When using the search field in the Preview panel, it is necessary to set the values to "flbNone".

Book Contents

Book Index

Calendar

A component for displaying a calendar, which serves for a clear display of events. In general, the calendar in IS K2 enables online connection and management of private and work calendars together with the calendar of documents in one place.

pic_6076

Picture: Properties of the Calendar component

Description of the properties of the Default data display section:

Default view type

The display type that will be the default for the given component. It is set after the calendar is displayed. Available options:

  • Monthly view - a calendar displaying the whole month.
  • Weekly view - a calendar for a weekly overview.
  • Daily view - a calendar for a daily overview.

Default date

The date that will be displayed within the calendar. When displayed, the calendar is set so that it contains the default date. Available options:

  • Today's date - the calendar in the specific view will always contain the current day.
  • By field value - after setting this, the Field with default date field becomes available.

Field with default date

The calendar display will be governed by this field (the date in this field). The calendar is displayed so that it contains this date.

When including a calendar in a form, and also generally when working with a calendar, we have two options. The first is setting up the Providers of calendar dates. The calendar component then follows the settings in this provider. In this case, we select the Only by configuration option in the Data acquisition method field.

The second option is connecting the calendar component to a data module intended for this purpose. In this case, it is necessary to select By settings in the fragment and configuration in the Data acquisition method field and to make further settings in the fragment itself, i.e. using its properties.

Description of the properties of the Data acquisition method section:

Data acquisition method

In this field, we select the method of connecting the component to data. Available options:

  • Only by configuration - the calendar follows only the settings in the configuration, i.e. the settings of the Providers of calendar dates. After selecting this option, the remaining fragment properties in the Data acquisition method section are not available.
  • By settings in the fragment and configuration - the calendar follows the settings of the fragment properties. After selecting this option, further properties of the component become available.

DataContext for event reading

Data module for calendar events.

Field for "Event start date"

A field from the data module that determines the start date of the event.

End date

If this field is checked, the event will also have an end date and the Field for "Event end date" field becomes available.

Field for "Event end date"

A field from the data module that determines the end date of the event.

Field for "Event description"

A field from the data module for the description of the given event.

Field for "Event tooltip"

A field from the data module for the Event tooltip. This is a hint displayed when hovering the mouse over a calendar event.

Field with value "Event status icon"

A field from the data module that determines the icon expressing the status of the event.

Method of setting "All day event"

In this field, it is possible to set how an all-day event will be determined in the calendar. Available options:

  • By fixed value - this option makes the Characteristic "All day event" field available.
  • By field value - this option makes the Field with value "All day event" field available.

Characteristic "All day event"

By checking here, we determine whether the event will have the All day event characteristic or not.

Field with value "All day event"

A field that determines whether the event will have the All day event characteristic or not.

Field with value "Color"

A field from the data module determining the color of the event. Otherwise, it is based on the color of the calendar.

Command for a "new event" from the calendar

Here it is possible to enter an action (command) that is run to create a new calendar event.

Field with value "display priority"

A field from the data module determining the display priority of the event.

Book Contents

Book Index

Stack panel

Stack panel is a stack of components that arranges the inserted components to the left or to the right (depending on the settings). Stack panel arranges components according to their actual size.

pic_4411

Picture: Example of using the Stack panel component

The Stack panel component has no special properties.

Book Contents

Book Index

Floater (Floating form)

A component that groups blocks of information or fields. The Floater is displayed using a button.

pic_4399

Picture: Example of using the Floater component

pic_4400

Picture: Properties of the Floater component

Description of properties:

Size

Height (number of rows) of the component. If not entered, 0 (automatic). Valid for the button that launches the form.

ShowNoEmptyState

Indication that the content of the Floater is not empty. If this field is checked and the content of the Floater is not empty, the icon pic_922i is displayed within the Floater.

Display mode

Floater display:

  • View - the open Floater can be manipulated only within the window (monitor).
  • StandAloneForm - the Floater form can be "detached" and placed e.g. on another monitor.

Book Contents

Book Index

Library reference

Using this option, it is possible to use library fragments in forms. These are combinations of fragments predefined by the manufacturer. By selecting this option, we display the list of all library fragments.

pic_4402

Picture: List of library fragments

Book Contents

Book Index

MultiContent

This component is similar to Tab control. It creates tabs which, unlike Tab control, are not visible. Only one of the tabs is always visible to the user. It is possible to switch between them, e.g. using an icon (command) or the key combination Ctrl+Tab.

pic_4403

Picture: Example of using the MultiContent component

pic_4404

Picture: Properties of the MultiContent component

Description of properties:

Size

Height (number of lines) of the component. If not entered, 0 (automatic).

Icon position

Position of the icon relative to the tab name:

  • Left - the icon is placed on the left.
  • Top - the icon is placed at the top above the tab label.
  • Right - the icon is placed on the right.
  • Bottom - the icon is placed at the bottom below the tab label.
  • Center - the icon is placed in the centre.

Accesors Stretch

The individual tabs of the component are stretched across the whole screen. They make maximum use of the space.

Book Contents

Book Index

List view

This component serves for displaying a list of records. Records can be displayed within the List view in 3 different modes. The List view component also supports sorting records into groups.

pic_4405

Picture: Example of using the List view component

pic_4406

Picture: Properties of the List view component

Description of properties:

Tab Stop

Sets the focus for the given field. When moving through the fields, the focus will also pass through this field.

ViewStyle

The default style of displaying records. It is possible to switch between styles later. This component supports 4 record display styles:

  • Icon - display in large icons mode.
  • SmallIcon - display in small icons mode.
  • List - display of records in a simple table containing only one column.
  • Report - display of records in a multi-column table.

Minimum row count

The minimum number of rows the component displays. If the List view contains more rows than this minimum number, the component will scroll.

Title field

The name of the field from which the title (heading) of records is loaded.

Icon field

The name of the field from which the icon for records is loaded.

Grouping field

The field from which the group name is loaded.

Sorting field

The field by which records in the ListView component will be sorted.

List of fields displayed in the "ReportView" state.

Here it is possible to enter the fields that will be displayed as columns in Report mode.

Hide header

If this field is checked, the header (blue bar) at the top of the component is hidden.

LiteHeader

Switching the List view header to a different display. The header is then not blue and may be less distracting for the user.

Group

Option whether the records should be grouped by default.

AcceptRowCommand

The command (action) that is run after pressing the Enter key or after double-clicking a button in the list.

Book Contents

Book Index

File preview

File preview is a component that makes it possible to display a preview of an attached file (document, picture) in the form. Within this component, it is possible to enter a DataContext, and the image preview can then always be updated when browsing records.

If the Microsoft Office package (Word, Excel,...) is not installed or for some reason is not functional, has no licence, etc., it is possible to install Libre Office. For previews in the web K2, Libre Office must be installed on the AS; for previews in the desktop K2, it must be installed locally.

pic_4407

Picture: Example of using the File preview component

pic_4408

Picture: Properties of the File preview component

Description of properties:

Explicit file name

Explicit (forced) name of the file that is to be displayed in the preview. We can also enter the path to the file storage here.

Size

Height (number of lines) of the component. If not entered, 0 (automatic).

Strech

The picture is stretched over the entire available area within the component.

ZoomAllowed

Zooming of pictures and documents is allowed within the component, e.g. using the combination Ctrl+mouse wheel. Whenever this option is turned on, the PanAllowed flag is also set automatically.

PanAllowed

Scrolling is allowed. If the picture or document is larger than the component area, it can be moved using the scroll bars.

UseOriginalDocument

If checked, the AS sends the client the original document, not its preview.

Book Contents

Book Index

Image

This component is very similar to the File preview component. It is suitable for displaying pictures only, not documents.

pic_4412

Picture: Properties of the Image component

Description of properties:

Explicit file name

Explicit (forced) name of the file that is to be displayed in the form. We can also enter the path to the picture storage here.

Size

Height (number of lines) of the component. If not entered, 0 (automatic).

Stretch

Stretches the picture over the entire available area within the component.

ZoomAllowed

Zooming of pictures and documents is allowed within the component, e.g. using the combination Ctrl+mouse wheel. Whenever this option is turned on, the PanAllowed flag is also set automatically.

PanAllowed

Scrolling is allowed. If the picture or document is larger than the component area, it can be moved using the scroll bars.

Book Contents

Book Index

Formatted text (Input formattable)

A component for formatted and translated text. The component enables displaying language alternatives of the text and its formatting.

The first option for using this fragment is to connect it to a data module that is intended for this purpose and that supports formatted text. We do this in the DataContext field.

The second option is connecting it to an ordinary text memo field. In this case, we do not fill in the data context in the general properties (the component then works e.g. at the :detail level) and we enter the field name in the field named Field with text.

pic_4409

Picture: Example of using the Input formattable component

pic_4413

Picture: Properties of the Input formattable component

Description of properties:

Tab Stop

Sets the focus for the given field. When moving through the fields, the focus will also pass through this field.

Field with text

Field for the name of the text field to which the component will be connected.

Field with language number

The name of the field determining the language number of the text.

Field with format

The name of the field determining the text format.

Explicit format

In this field, we can force the format of the text field. The following options are available:

  • Auto Detect - automatically identifies the format of the text field according to the value in the field.
  • Text - text format.
  • Html - html format.

Lines Count

Height (number of lines) of the component. If not entered, 0 (automatic).

Show Label

Using this field, it is possible to influence the display of the component title.

Show Frame

Display of a frame around the component. If the field is checked, the frame is displayed.

Disable Label Highlight

The change indication will not be displayed for the given component. In the event of a change, the field will not be highlighted in blue.

Show ToolBar

If this field is checked, the component's toolbar is displayed in it.

Book Contents

Book Index

Tree view (Tree table)

A component for displaying records in a tree structure. Records in the tree table can be edited using the "Drag and Drop" method.

pic_4414

Picture: Example of using the Tree view component

pic_4415

Picture: Properties of the Tree view component

Description of properties:

Node main description

Field for the label (name) of a tree table node. A formatting string can be entered here, so a field can be written in square brackets. The value from this field will then be displayed as the node label.

If we enter text before the value in square brackets, this text + the value of the field in brackets will be displayed as the node label, e.g. Name: [NodeNameCalc].

Field with default state to expand node

A Boolean field that indicates whether a node of the tree table is expanded or not. It takes the values Yes/No.

Field with node's icon

The name of the field from which the icon for individual nodes in the Tree view is loaded.

Field with node status icon

The name of the field from which the icon expressing the node status in the Tree view is loaded (e.g. when the node is in the Change state). This icon is then displayed.

Display mode

The display type of the tree table. There are two display types:

  • SimpleTree - a simple table. In this display, the tree table has only one column and it is not possible to add more.
  • TreeGrid - in this display, it is possible to work with columns in the table.

Another columns

Here we enter the fields that will be displayed as columns in the Tree view component. Individual fields are separated by commas.

Minimum row count

The minimum number of rows the component displays. If the Tree view contains more rows than this minimum number, the component will scroll.

Lite Header

Switching the List view header to a different display. The header is then not blue and may be less distracting for the user.

Hide header

If this field is checked, the header (blue bar) at the top of the component is hidden.

AcceptRowCommand

The command (action) that is run after pressing the Enter key or after double-clicking a record in the tree structure.

Book Contents

Book Index

WebView

Using this component, it is possible to display a web page in a form, both in the desktop and in the web version of IS K2. We enter the URL address of the web page either explicitly in the Explicit url address field or through the data context of the component.

pic_7217

Picture: Example of using the WebView component

pic_7216

Picture: Properties of the WebView component

Description of properties:

Explicit url address

Field for explicitly entering the url address of the web page that will then be displayed within this fragment.

Name of the data exchange field

 

Size

Height (number of lines) of the component. If not entered, 0 (automatic).

Book Contents

Book Index

Radio box

Radio box is a component that makes it possible to display radio buttons instead of a field with a value selection. A radio button is a control that allows the user to select one value from a predefined set of mutually exclusive options.

The data module whose records will represent the individual radio buttons is entered using a field that represents the given module. In the example below, it is a list of cost centres represented by a link to the Cost centres table using the "CostCentreId" field. We enter it in the DataContext field.

Note: A title cannot be entered for the "radio box" component. In the example in the picture with cost centres, the component is inserted into a "group box" component, which was given the title Cost centre.

By default, the list of radio box items is made up of all records from the referenced table. These are automatically presented in the format Abbreviation - Name. A different presentation can be achieved by writing text into the ExplicitButtonCaption field - the names of data module fields must be given in square brackets. In the example below, the list of cost centres is displayed only using the Abbreviation ( [Abbr] ).

If the list of radio box items needs to be limited to selected values (records) only, these must be entered on the secondary tab. In the Id field, we enter the internal number of the record (Id, RID). In this case, the item name must be written in the Title field (the record representation is not created automatically).

pic_7750

Picture: Example of using the Radio box component - list of cost centres

pic_7751

Picture: Properties of the Radio box component

Description of properties:

DataContext

The name of the identifier of the data table. In the example in the picture with cost centres, it is therefore "CostCentreId".

Column count

The number of columns with radio buttons. In the example in the picture with cost centres, the value = 3.

ArrowControl

On: in the Change state, the value in the component can be changed using the Up / Down arrows.

ShowFrame

Creates a border around the component.

ButtonIconField

The name of the field with the picture (bitmap).

ShowButtonIcon

On: For individual radio buttons, displays a picture (icon) from the field entered in the ButtonIconField field.

ExplicitButtonCaption

Definition of the presentation of radio box items. The rules are described in more detail above in the component description.

Book Contents

Book Index

Keyboard input

Keyboard input is a component similar to the Input component and serves primarily for entering data via readers, by reading cards, etc. Unlike the Input component, it ignores all "update commands" that may be applied on the form, and when entering a value it always waits for its confirmation (Enter, Tab). It also makes it possible to display the required text (watermark) instead of the actual value or to convert the actual value to asterisks (e.g. for entering a password).

pic_9725

Picture: Example of using the Keyboard input component - entering the login name

pic_9726

Picture: Properties of the Keyboard input component

Description of properties:

IgnoreFieldValue

Yes: The actual value of the data field will not be displayed; the text entered in the Watermark parameter can be displayed, see the picture Example of using the Keyboard input component - entering the login name, where a description of what the field is used for is displayed instead of the user abbreviation.

No: The actual value of the data field will be displayed.

Watermark

The text that will be displayed in the input instead of the actual field value if the IgnoreFieldValue parameter is active.

IsPassword

The actual value of the field will be displayed as asterisks.

InputAsEnglishUSLocale

Yes: The entered characters will be read as if the English keyboard were turned on.

No: The entered characters will be decoded according to the currently set keyboard language.

FrameKind

Type of field border.

ColorStyle

Appearance style: either as a Label component or as an Input component.

FrontGlyphId, RearGlyphId

A link to the icon / picture file that will be displayed at the beginning / at the end of the field value. See the picture Example of using the Keyboard input component - entering the login name, where arrow icons are entered.

BackGlyphId

A link to the picture file that will be displayed in the background of the component (e.g. a company logo).

Book Contents

Book Index

ClientWidget

The Client Widged component makes it possible to display additional values on forms. It works only for the web K2. It offers two basic options:

pic_7948

Picture: The ClientWidged component with the setting for displaying the clock

pic_9796

Picture: Current date and time on the form - simple display

pic_9796

Picture: Current date and time on the form - more colourful display

pic_7950

Picture: The ClientWidged component with the setting for displaying custom information using a link to a JavaScript

pic_7951

Picture: Weather display on the K2 desktop

Note: The "Weather.js" script is part of the standard installation; it is stored in the web installation, in the "widgets" directory.

Book Contents

Book Index

Kanban

The Kanban component serves for displaying the values of a selected data module in the web K2 using a so-called board.

pic_10276

Picture: Kanban board component

Description of fields:

GroupBy

Here we select the data module whose data will be displayed in the columns.

GroupBySelectionIDU

If we want to filter the data from the GroupBy field, we select the required filter in this field.

Swim lane

We perform custom formatting of the column header (type, font size, etc.).

SwimLaneOrderBy

Here we select the field that will be shown in the column (e.g. surname, first name, month,...).

Data

Definition of the format for the displayed data.

DataIdemOrderBy

Selection of the fields by which the data will be sorted.

Book Contents

Book Index

MultiformatText

The MultiformatText component is used for displaying a defined multiformat. A field with a defined multiformat text can be referenced in the component properties (the Field as multiformat text source field), or the multiformat text can be defined directly in the component (the Multi format tab).

Application field:

pic_10490

Picture: Properties of the MultiformatText component

pic_10491

Picture: Use of the MultiformatText component in a standard form for the preview of a formatted column

pic_10492

Picture: Possible use of the MultiformatText component for displaying an item module with article bar codes

pic_10493

Picture: Definition of displaying article bar codes in the MultiformatText component

Book Contents

Book Index

Library fragments

These are fragments defined by the manufacturer, which consist of other fragments and form parts of a form that can be used when creating and designing forms. By using a suitable library fragment, the user can save a great deal of work. They do not have to design the whole form or a part of it from scratch, but only select the right library fragment.

We insert a library fragment into the form design using the Insert key. A list of all available fragments is displayed, in which we look for the Library reference option.

pic_4488

Picture: Selection of the Library reference fragment

After selecting the Library reference option, a list of all available library fragments is displayed.

pic_4489

Picture: List of library fragments

Library fragments have properties that can be set and that we display using the F11 key or the Edit button when the given fragment is selected.

pic_4490

Picture: Properties of a library fragment

Description of properties:

Name of library fragment

Name of the library fragment.

Size

Height (number of rows) of the fragment. If not entered, 0 (automatic).

If we select any component inside a library fragment, this component is marked with a blue frame.

pic_4492

Picture: Selected component inside a library fragment

If a library fragment is applied in a form, it cannot be changed in any way. Library fragments can be edited by selecting the fragment and launching the Form designer again with the key combination Ctrl+Alt+Shif+D. In the designer, the library fragment can then be edited, thus creating its modification. The changes are then always reflected everywhere the given library fragment is used.

In the form designer, we can also create new library fragments using the New - Library option. Two options are available here:

The same rules apply to saving new library fragments or their modifications as in the case of form modifications.

Book Contents

Book Index

ActivityDetail

A library fragment that contains basic information about activities.

pic_4491

Picture: Library fragment ActivityDetail

Book Contents

Book Index

ActivityTree

A fragment for displaying the tree of activities. It consists of the Tree view (tree table) component and the Input formattable component.

pic_4493

Picture: Library fragment ActivityTree

Book Contents

Book Index

AttachedDoc

A library fragment that makes it possible to attach all types of documents to records. This fragment includes the Grid data (table), Expander and File preview components. A Splitter is also included as a separator.

pic_4494

Picture: Use of the AttachedDoc library fragment

Book Contents

Book Index

Attachments

A fragment for attaching attachments in the form of K2 links to records. If, for example, the data module does not support attaching activities, the tab for attaching them is not displayed in this fragment at all. This fragment is based on the Tab control component.

pic_4495

Picture: Use of the Attachments library fragment

Book Contents

Book Index

BaseAdditionalText

This component is created using the Tab control fragment and contains tabs for Comments, Header text, Footer text and Internal text. These tabs can therefore be used for inserting text into the header and footer of a document, for inserting any comment or for displaying the internal text.

pic_4496

Picture: Library fragment BaseAdditionalText

Book Contents

Book Index

TradeAdditionalText

This library fragment contains the same tabs as the BaseAdditionalText fragment. The only addition is a tab displaying the Customer internal text.

pic_4499

Picture: Library fragment TradeAdditionalText

Book Contents

Book Index

CodeEvaluationItems

The CodeEvaluationItems library fragment is created using the Tab Control component. The fragment is intended for use in analytical axes. There are several tabs listing the items in which the given analytical axis is used (filled in). These are the tabs: Items of purchase, Sale Items, Transfer notes items From, Transfer notes items To, Production items, Stock items, Produced items by categories, Items of payment documents, Items of acc. doc..

pic_4500

Picture: Use of the CodeEvaluationItems library fragment

Book Contents

Book Index

CreaChnInfo

A fragment containing information about the user who created or changed the document. It also shows the date and time of creation or change of the record. The data context of the Created by field is the CreatedBy field, the data context of the Changed by field is ChangedBy.

pic_4501

Picture: Library fragment CreaChnInfo

Book Contents

Book Index

DocumentSettings

A fragment for the basic settings of a data module. It contains the Expander, component, which includes the Business year and Warehouse fields.

pic_4502

Picture: Library fragment DocumentSettings

Book Contents

Book Index

EAPreview

A library fragment for displaying 4 basic electronic addresses. It displays 4 basic predefined types of electronic addresses.

pic_4503

Picture: Library fragment EAPreview

Book Contents

Book Index

IncidentalCostChild

A fragment based on the Grid data component for displaying incidental costs. The data context of this fragment is the IncidentalCostChild field.

pic_4504

Picture: Library fragment IncidentalCostChild

Book Contents

Book Index

PaymentRecalculation

This library fragment contains the Button component. This button launches the function for recalculating payments.

pic_4505

Picture: Library fragment PaymentRecalculation

Book Contents

Book Index

PreviewAddress

A fragment for displaying a map according to the entered address. This fragment is of the MultiContent type and can display not only the map but also the address.

pic_4710

Picture: Address display in PreviewAddress

pic4324

Picture: Map display in PreviewAddress

Book Contents

Book Index

PurchaseDocCustomer

A library fragment for the Supplier field in purchase documents. The fragment is based on the MultiContent component, which enables various displays of the Supplier field (abbreviation 1, abbreviation 2, number, company, Comp. Reg. No.).

pic_4507

Picture: Library fragment PurchaseDocCustomer

Book Contents

Book Index

PurchaseItemGoods

A library fragment that displays the article in purchase items. This fragment consists of the MultiContent component, which enables various displays of the article (abbreviation 1, abbreviation 2, number, name, barcode). The fragment also includes the Input component for the article name.

pic_4508

Picture: Library fragment PurchaseItemGoods

Book Contents

Book Index

PurchaseItemMore

This fragment includes the MultiContent component. It is a More/Less switch in purchase items. Using the switch, it is possible to choose between displaying a larger or smaller amount of data about the purchase item.

pic_4509

Picture: Use of the PurchaseItemMore component

Book Contents

Book Index

PurchaseItemPrices

This library fragment is based on the Tab control component. The individual tabs display all Net, Gross, Net without discount and Gross without discount prices for purchase items.

pic_4510

Picture: Library fragment PurchaseItemPrices

Book Contents

Book Index

PurchaseSubAlternDoc

This library fragment is created using the Tab control component. The individual tabs list related documents for purchase documents. Purchase orders, Receipt cards, Delivery confirmation, Invoices Out, Transfer notes and Delivery orders are displayed here.

pic_4511

Picture: Use of the PurchaseSubAlternDoc fragment

Book Contents

Book Index

ReverseChargeItem

A library fragment for Reverse charge VAT. It is used for invoices in. This fragment contains several components of the Input type and a Button component with an action for displaying the Exchange rate list.

pic_4525

Picture: Library fragment ReverseChargeItem

Book Contents

Book Index

SaleBusinessPrices

A library fragment containing sales information. It shows a comparison of the actual and planned state.

pic_4524

Picture: Library fragment SaleBusinessPrices

Book Contents

Book Index

SaleDocCustomer

This fragment is intended for the Customer field in Sales documents. The fragment is based on the MultiContent component and makes it possible to display various values in the Customer field (abbreviation 1, abbreviation 2, number, company, Comp. Reg. No.).

pic_4514

Picture: Library fragment SaleDocCustomer

Book Contents

Book Index

SaleItemGoods

A library fragment that displays the article in sale items. This fragment consists of the MultiContent component, which enables various displays of the article (abbreviation 1, abbreviation 2, number, name, barcode, serial number). The fragment also includes the Input component for the article name.

pic_4515

Picture: Library fragment SaleItemGoods

Book Contents

Book Index

SaleItemMore

This fragment includes the MultiContent component. It is a More/Less switch in sale items. Using the switch, it is possible to choose between displaying a larger or smaller amount of data about the sale item.

pic_4516

Picture: Library fragment SaleItemMore

Book Contents

Book Index

SaleItemPrices

This library fragment is based on the Tab control component. The individual tabs display all Net, Gross, Net without discount and Gross without discount prices for sale items.

pic_4517

Picture: Library fragment SaleItemPrices

Book Contents

Book Index

SaleSubAlternDoc

This library fragment is created using the Tab control component. The individual tabs list related documents for sales documents. Sales Orders, Order confirmations, Reserving Cards, Release Notes, Delivery notes, Invoices Out and Delivery orders are displayed here.

pic_4518

Picture: Library fragment SaleSubAlternDoc

Book Contents

Book Index

StockCardFull

A library fragment for the stock card. It displays information about stock movements of the article. The fragment consists of the Grid data (table) component and the Expander component, which contains summary information.

pic_4520

Picture: Library fragment StockCardFull

Book Contents

Book Index

Trade3Address

A library fragment for displaying and entering the invoicing, delivery and correspondence address. This fragment contains components of the Label type for displaying the relevant address. There are also components of the Button type, to which the "ShowAddressForTypeCOMMAND" action for entering the address is linked.

pic_4521

Picture: Library fragment Trade3Address

Book Contents

Book Index

TradeInvoiceTaxSummary

A library fragment for the tax recapitulation of invoices out and invoices in.

pic_4522

Picture: Library fragment TradeInvoiceTaxSummary

Book Contents

Book Index

TradeTaxSummary

A library fragment for the tax recapitulation of superior documents (sales orders, purchase orders).

pic_4523

Picture: Library fragment TradeTaxSummary

Book Contents

Book Index

TradeItemIntrastat

A library fragment including Intrastat data in purchase and sale items. The basis of this fragment is the Expander component, which contains fields for all Intrastat data.

pic_4526

Picture: Library fragment TradeItemIntrastat

Book Contents

Book Index

TradeSerNumItemsSummary

A library fragment for displaying all serial numbers for the whole purchase or sales document. It is a Grid data (table) component.

pic_4527

Picture: Library fragment TradeSerNumItemsSummary

Book Contents

Book Index

TravelOrderCode

A library fragment for the Travel orders data module. The fragment is created using the Floater (floating form) component.

pic_4528

Picture: Button for the Floater

Pressing the button displays additional fields (codes) for travel order documents.

pic_4529

Picture: Library fragment TravelOrderCode

Book Contents

Book Index

WKFComment

A library fragment for the process comment in the Workflow data module. This fragment is created using the Input formattable component.

pic_4530

Picture: Library fragment Input formattable

Book Contents

Book Index

Practical examples of using the form designer

Book Contents

Book Index

Ex. 1. Modification of the Sale Items form

A common topic of form modifications is moving fields frequently used by the user, e.g. from a floater to the basic form, where they are then more easily accessible.

Example 1: We will modify the Sales item form. In our example, we will move some accounting information to the basic form for sale items, specifically the VAT, Tax type fields and the PDP check box. Furthermore, we will include the Cost centres analytical axis in the basic item form. It is an axis frequently used for evaluation. The form will be saved so that it is available to all users.

Ex. 1. Saving the modification of the Sale Items form

First, we insert the Cost centre analytical axis into the basic form of sale items. We open the Sales Orders book and display the Sale Items tab here. Then we open the form for the sale item in the Less version. We will edit this form and add the required fields here.

pic_4423

Picture: The Sales item form

Using the key combination Ctrl+Alt+Shift+D, we display this form within the form designer.

pic_4424

Picture: Form designer - Sales item

When editing the form, we will start from the original (factory) form and only adjust it. We will therefore modify the form.

In the control panel of the designer, we switch to the Root tab and select the required saving level of the form modification here. The goal is for the form to be available to all users and valid for all states. In the matrix on the Root tab, we therefore select for this form modification the combination of the Global state (includes all states) and the Install saving level.

At the position Global + Install, we display all options using the left mouse button and select Create new modification. A form is displayed showing basic information about saving the form modification.

pic_4425

Picture: Information about saving the form modification

We confirm the form by pressing the OK button. The position for saving the form modification is now identified by the icon pic_907i.

pic_4426

Picture: Matrix with the marked position for saving the form modification

Ex. 1. Inserting the new Cost centre field

Once we have the form modification prepared and the position for saving it set, we can proceed to editing the form and insert a new field for the Cost centre analytical axis here.

First, in the designer, we select the part of the sale items form into which we want to insert the field. We do this by clicking with the mouse on any component in the upper part of the form, e.g. Description, and it is marked in red. By pressing the Esc key, its parent component is then selected, i.e. the one into which the Description component is inserted. It is a Panel that is already connected to the :detail data. We will insert the new fields into this panel. Other objects can be inserted only into a component framed in this way.

pic_4427

Picture: Selecting the form for inserting a new component

We now have a component selected in the form (Panel), and using the Insert key we insert a new component for the Cost centre field here. By pressing the Insert key, we display a list of all available form components. For the Cost centre field, we use the Input component. We therefore look up the Input component in the list.

pic_4428

Picture: List of available components

Using the Enter key, we select the Input component in the list. The component is inserted into the Sales item form and is marked with a red frame. Using the key combination Shift+right arrow, we increase the width of this element to the value 2.

pic_4430

Picture: Form with the newly inserted Input component

Using the F11 key, we display the properties of the given component (Input).

In the form, we have to set the data context, i.e. we have to connect this component to the field that carries the information about the cost centre. We set the data context in the DataContext field. Here we can directly write the field name (if we know it) or we can look it up.

Using the mouse, we display the menu of the DataContext field.

pic_4432

Picture: Field selection for the data context (:detail)

The parent component (Panel) is already connected to the sales order detail data. Therefore, in this menu we see a list of all fields from the sales order detail. Here we look up the Cost centre field and select it using the Enter key. The Cost centre field is then set as the data context for the Input component.

pic_4433

Picture: Settings for the Cost centre field

We confirm this setting using the OK button.

We have everything necessary set for the Cost centre field and we can save the form modification using the Save button in the toolbar of the form designer. After saving, a new field for the Cost centre analytical axis is added to the form.

pic_4435

Picture: Form with the newly inserted Cost centre field

Ex. 1. Including accounting information

The next step in this example is including some accounting information in the basic form for sale items. Specifically, these are the VAT, Tax type fields and the PDP check box. We find these fields in the form for sale items when we display its More variant and press the Ac. information button. A form (Floater) showing basic accounting information is displayed.

We therefore open the Sale Items form and, using the key combination Ctrl+Alt+Shift+D, display this form within the form designer. We will now move around the form using Alt+left mouse button and click the More tab in the form design. The variant of the form with more information about the sale item is displayed.

pic_4437

Picture: The Sales item form - More variant

Next, in the form design, we again click with Alt+left mouse button on the Ac. information button. A form (Floater) is displayed.

pic_4438

Picture: Form with accounting information

This form contains the VAT field, which we want to include in the basic form for sale items.

Tip for the user: We include the VAT field in the basic form by copying it. We make the copy using the key combination Ctrl+C - loading into the clipboard - and then using Ctrl+V - pasting from the clipboard into the selected location. The copy retains all properties of the given field.

We click on the VAT, field with the left mouse button and once it is marked with a frame, we can press the Ctrl+C keys. By clicking the icon pic_924i (Alt+left mouse button), we can then close the form with accounting information.

In the form design, we then click with Alt+left mouse button on the Less tab. The basic variant of the form for sale items is displayed again. In the form, we click with the mouse on the Description component and it is marked with a red frame. Then, by pressing the Esc key, its parent component is selected. It is a Panel that is already connected to the :detail, data and into which we will insert the VAT field.

Using the key combination Ctrl+V, we paste the component (the VAT field) from the clipboard into the basic form, into the Panel component.

pic_4439

Picture: Form design with the newly inserted VAT field

We have everything necessary set for the VAT field. It is not necessary to edit its properties. They were retained when the field was copied. We can save the form modification using the button in the toolbar of the form designer and close the designer.

After saving, the new VAT field is added to the form.

pic_4440

Picture: Form with the newly inserted VAT field

We proceed in exactly the same way as with the VAT field in the case of the Tax type and PDP fields. We also place these fields in the basic form by copying them there using Ctrl+C and then Ctrl+V. We again place these two elements in the panel next to the already included fields. After saving the form design, the user has the given fields available directly in the basic form for sale items.

pic_4441

Picture: Form extended with 4 new fields

Book Contents

Book Index

Ex. 2 Simplified release note

Another common form adjustment is simplifying them. Forms often contain a large number of fields that users (or user groups) do not use. For example, a warehouseman needs only the basic and mandatory fields for issuing articles, whereas an accounting department employee uses more code lists for a more thorough specification of documents.

Example 2: We will modify the Release note form. In our example, we will move the Sale Items table to the Basic data tab. Furthermore, we will try to simplify the form as much as possible and delete the fields that the warehouseman does not need for his work. We will keep only the most important fields here, i.e. information about the customer and the warehouse. We will also keep the mandatory fields. We will delete the Sale Items, Posting and Attachments tabs. We will adjust the form and replace two Expander components with a Group box. The form modification will be available to the Warehouseman group and for all form states.

Ex. 2 Saving the modification of the Release note form

First, we save the form modification to the required level. We therefore open the Release note form and, using the key combination Ctrl+Alt+Shift+D, display this form within the form designer.

In the control panel of the designer, we switch to the Root tab and select the saving level here. From the assignment of the example, we know that we want the form to work for all form states and to be available to the Warehouseman group. In the matrix on the Root tab, we therefore select for this modification the combination of the Global state (includes all states) and the Group saving level.

At the position Global + Group, we display all options using the left mouse button and select Create new modification. A form is displayed showing basic information about saving the form modification.

pic_4444

Picture: Selecting the saving level of the modification (Warehouseman)

In this form, we fill in the name of the required group, i.e. Warehouseman, in the Contact group field. We confirm the setting by pressing the OK button. The position for saving the form modification is now identified by the icon pic_907i.

pic_4473

Picture: Saving level of the form modification

Ex. 2 Moving the Sale Items table

The first step in this example is moving the sale items table to the Basic data tab. We will place this table in the lower part of the form and replace the section with tabs (Comment, Header text, Footer text,...) with it.

By clicking with Alt+Left mouse button, we display the Sale Items tab and select the Sale Items table with the left mouse button.

pic_4445

Picture: Selected Sale Items table

Once the table (the Grid component) is marked with a red frame, we can copy it to the clipboard using Ctrl+C. Using Alt + Left mouse button, we display the Basic data tab. Here we click with the left mouse button into the section with comments and it is marked with a blue frame. Then we press the Esc key 2 times, thus selecting the whole library fragment with tabs.

pic_4447

Picture: Selecting a library fragment

By pressing the Delete key, we delete the library fragment.

Next, in the form design, we select the whole Basic data panel (with the left mouse button).

pic_4448

Picture: Selected Basic data panel

Into the component selected in this way, we paste the Sale Items table from the clipboard using the Ctrl+V keys. We save the form design.

pic_4449

Picture: The Basic data tab extended with Sale Items

Ex. 2 Deleting form components

In the next part of our example, we will delete some form components to simplify it. We therefore launch the form design again using the Ctrl+Alt+Shift+D keys. We switch to the Basic data tab (Alt+left mouse button) and select the Preview panel in the right part of the form. We do this by clicking the panel header with the left mouse button.

pic_4450

Picture: Selecting the Preview panel

We delete the selected Preview panel using the Delete key.

pic_4451

Picture: Form with the Preview panel removed

We display the form design again using the Ctrl+Alt+Shift+D keys. We switch to the Basic data tab (Alt+left mouse button). Here we select further components that we want to delete from the form. We therefore select the whole component for Addresses, then the WMS expander and the Ac. information, Matching symbol and Excise tax floaters. We want to delete these components from the form all at once. We therefore select these elements using the left mouse button in combination with the Ctrl key.

pic_4452

Picture: Selecting form elements for deletion

By pressing the Delete key, we remove these components from the form design. We save the form design.

pic_4453

Picture: Form design after deleting some elements

pic_4454

Picture: State of the form after deleting elements

Ex. 2 Deleting form tabs

Next, within this example, we will remove some tabs from the form. We will keep only the List and Basic data tabs in the form.

We therefore launch the form design again using the Ctrl+Alt+Shift+D keys. We switch to the last tab, Attachments (Alt + Left mouse button). Using the left mouse button and then the Esc key, we select the whole panel. It is the component that contains all other elements of this tab.

pic_4455

Picture: Selecting the panel on the Attachments tab

Once the whole panel is selected, we can delete it with the Delete key.

pic_4456

Picture: Form with the deleted Attachments tab

Immediately after deleting the panel (tab), this tab moves to the first position in the form design. The tab is completely removed only after the form design is saved.

The next step is removing the Posting tab. We therefore switch to this tab, again using Alt + left mouse button, and again select the whole panel here, which contains all other elements available on this tab.

pic_4457

Picture: Selecting the whole panel (tab) Posting

Once the whole panel is selected, we can delete it again using the Delete key. After deletion, this tab is placed in the 2nd position in the form, right after the first deleted tab, Attachments.

pic_4458

Picture: Form with the deleted Posting tab

In exactly the same way, we also delete the Sale Items tab from the form design, because we already have this table included on the Basic data tab. After deletion, the Sale Items tab is placed in the 3rd position in the form design, right after the second tab, Posting.

pic_4459

Picture: Form with the deleted Sale Items tab

After deleting the third tab, Sale Items, we save the form design using the Save button in the toolbar of the form designer. After saving, the deleted tabs are completely removed from the form design.

pic_4460

Picture: Form design with the tabs removed

Ex. 2 Adjusting the Basic data tab

The next step in our example is adjusting the form on the Basic data tab. We will move the two expanders Conditions and Codes in the form so that they are placed next to the Warehouse group box. This time we will not copy these elements, but we will completely "cut" them and then "paste" them into the form.

In the form designer, we therefore display the Basic data tab again. We switch to it using Alt + Left mouse button. On this tab, we select both expanders, Conditions and Codes. An expander can be selected by clicking on its header. Using the Ctrl key, we select both expanders.

pic_4461

Picture: Selecting the expander on the Basic data tab

Once both expanders are marked with a red frame, we load them into the clipboard using the Ctrl+C keys.

Next, we select the panel in which the Warehouse group box is already placed. We select the panel by clicking into it with the left mouse button.

pic_4462

Picture: Selecting the panel

We paste both expanders from the clipboard into the selected panel.

Tip for the user: The contents of the clipboard can be pasted using the Shift+Ctrl+V keys. In this case, no copy is created; instead, the content is cut (deleted) from the original location and pasted into the new location.

We therefore paste the expanders from the clipboard using the key combination Shift+Ctrl+V. The Conditions and Codes expanders are deleted from the original location and inserted into the panel next to the Warehouse group box.

pic_4463

Picture: New location of the Conditions and Codes expanders

We can save the form design using the Save button in the toolbar.

pic_4464

Picture: Form with the new location of the expanders

We will adjust the form further by keeping only the mandatory fields in the newly placed expanders. In the Conditions expander, we keep only the Method of transport and Shipping method fields, and in the Codes expander only the Cost centre and Contract code fields will remain.

Again we display the form within the designer using the Ctrl+Alt+Shift+D keys and display the Basic data tab (Alt + Left mouse button). Using the left mouse button together with the Ctrl key, we select the components we want to delete from the form. We therefore select the Accepted by, Code 1, Code 2, Officer and Device fields.

pic_4465

Picture: Selecting components

Once the components are selected, we can delete them from the form design with the Delete key. We then save the form design using the Save button.

pic_4466

Picture: Form after reducing the fields

Ex. 2 Substitution of components

As the last step of this example, we will substitute components. We will replace both expanders, Conditions and Codes, with the Group box component, so that components of the same type are next to each other in the form.

We display the form designer Ctrl+Alt+Shift+D and switch to the Basic data tab (Alt + Left mouse button). Using the left mouse button together with the Ctrl key, we select the Conditions and Codes expanders. We do this by clicking the headers of these elements with the left mouse button.

pic_4467

Picture: Selecting the expanders

Once both expanders are selected, we can substitute the components. We launch this function using the key combination Ctrl+T. A list of all available form components is displayed, and in this list we look up the required Group box component. We select this component and the expanders are then replaced with a Group box. We save the form design using the Save button.

After closing the form designer, we have a form available according to the assignment and requirements.

pic_4468

Picture: Simplified release note

Book Contents

Book Index

List of keyboard shortcuts

Basic shortcuts:

Ctrl+Alt+Shift+D

Displaying the form designer.

Ctrl+L

Turning Live mode (data reading mode) on/off.

Ctrl+D

Turning Decorated mode (decoration lines) on/off.

Ctrl+M

Turning Modal mode on/off.

Ctrl+I

Displaying the information panel for form components.

Alt + left mouse button

Combination for working with the form within the form designer.

Handling components:

Insert

Inserting a new component.

Esc

Jump to the parent component.

Crl + A

Selecting all components at the same level.

Ctrl + left mouse button

Shifting the fragment one position to the left.

Ctrl + right mouse button

Shifting the fragment one position to the right.

Ctrl + T

Changing the component type.

Shift + left mouse button

Decreasing the component width by 1.

Shift + right mouse button

Increasing the component width by 1.

Shift + up arrow

Increasing the component height by 1.

Shift + down arrow

Decreasing the component height by 1.