PURPOSE:

A table layout window is opened from the menu (Structure - Table layout) or from a  table window i.e. by pressing the layout-tool.

The leftmost column is simply a row counter, while the upper-most row include column headers (argument, data element, domain, sorting, width and format). The rows under the top-most row corresponds to the data element types in the sentence type. The value of the sorting, width and format columns can be changed - these columns define the layout.

FUNCTION:

  • Sorting is set by specifying one or more of the data element types as a sort-key. This is done by entering a non-zero digit for these data element type(s), such as 1 is the most significant key, 2 is the second-most significant key etc. Negative values are used for descending sorting such that -1 then is the most significant key, -2 the second-most significant key etc.
    • Note!
    • Sort-key numbers must either all be positive or all negative.
    • The max length for a sort key is 255 - the length is the sum of the width defined for the sort-key data element types (the width refers to the width in the data element type definition and not the width defined in the table layout window).
  • The width column is used to specify the width for the data element types (i.e. columns in the target table window). The width is specified in character positions. The initial (default) value is the width specified in the data element type definition.  .
  • The format column is used to specify the display format for the data element type. The initial (default) value is the format specified in the data element type definition

Note that table layouts are stored in the KB (as table layout is in the model-sentences). There can be one layout sentence per sentence type. A table window will always be opened according to the stored table layout and mode.

  • The Save-button saves the layout as a table layout is in the model-sentence in the KB, closes the window and if a corresponding table window is open: reopens that window according to the layout.
  • The Delete-button deletes an existing table layout is in the model-sentence and closes the window.

NOTES:

  • If you enter or change layout for a sentence type which has more than one open table window, then only one of the table windows will be redisplayed according to the new layout.