Grid management 

Grid definition

According to the terminology used for softwares developed in adonix technology, a grid is a entry space composed of several lines and columns in which the user can enter multiple information.

A grid has the size of a screen block and is displayed as follows:

./TBL_MGT_05.gif

It is made up of:

  • a title line
  • a column with consecutive numbers:
  • ./TBL_MGT_04.gif

From the development's perspective, a grid is a set of variables with occurrences; a variable (called 'grid variable') is used to know the number of valid lines in the grid. Its name corresponds to the name of the current field when the whilst the cursor is in the grid -but during the entry of a field.

Entry in a grid

It is possible to set the cursor in a grid through different means:

  • by clicking once in one of the grid cells that has already been entered or in the last line if the user wants to add lines (note: the last line holds a number although it is empty). This is called taking the 'focus' on the grid; the is used to switch to entry mode.
  • by double-clicking in a cell (the interface automatically switches to entry mode for a grid cell).
  • by validating using the the entry in the previous grid zone.

In any case, the interface switches to entry mode on the first cell that can be entered (note: this is not necessarily the first cell nor the cell on which the user has clicked).

The use and function of the keys can vary if the user has taken the 'focus' on one line or if the interface is in entry mode for one of the grid cells.

In focus mode

For a grid in focus mode, these following keys can used to:

  • used to go to the section's next section.
  • it is possible to select several lines by selecting all these lines and maintaining the mouse's left button down or by moving one line to the next one with the activated. These lines are displayed in reverse contrast:
  • ./TBL_MGT_06.gif

  • When combined, the following keys: and the right-click option Delete line are used to delete the current line or, if applicable, all the lines that are selected.
  • The  and the right click option Insert line are used to insert a line at the current position (the line on which the cursor pointed is moved down). The line's first column can now be entered.
  • (or Escape, depending on keyboards) is used to restore the previous value of the current line and to exit the entry mode whilst keeping the focus on the line. This key can also be used at the beginning of an empty line when the user does not want to enter any additional line. Moreover, it can be used to abort the insertion of a line.
  • The 4 arrows can be used to move the focus onto all the grid cells; the can be used to place the cursor at the end of a line whereas the Start key can be used to place the cursor to the beginning of the line (on the fist cell that can be entered); if the user uses these keys combined with the , they can be used to place the cursor at the very beginning (first line) or at the very end (last line, last column) of the grid.

It is important to note that the insertion or the delete of a line can be forbidden on a grid, depending on functional criteria (in that case, the keys will not work)

In entry mode

For a grid in entry mode, these following keys can used to:

  • used to go to the grid next field.
  •  used to go to the previous value
  • used to validate the rest of the current line and to exit the entry mode whilst keeping the 'focus' on that line.
  • (or Escape, depending on keyboards) is used to restore the previous value of the current line and to exit the entry mode whilst keeping the focus on the line. This key can also be used at the beginning of an empty line when the user does not want to enter any additional line.
  •  used to validate the current cell and go to the next line's similar cell (if all the cells in between have valid values).
  •  used to validate the current cell and go to the previous line's similar cell (if all cells in between have valid values).

Specific functions

Enlargerment of the section and scrolling information

  • The screen section's size in which the grid is displayed can, if needed, be enlarged.
    This functionality is activated:
    - In client server mode: by clicking on the icon ./TBL_MGT_11.jpg.
    - In web mode, by clicking on the upper right corner of the section.

    The section' size is then maximized and occupies all the space available. The left list and the buttons at the bottom of the screen are not displayed anymore.
    In client server mode, it is also possible to enlarge the block's size whilst still displaying the left list and the buttons at the bottom of the screen. To achieve this, click on the icon./TBL_MGT_11.jpg while pressing the  In order to scale down the section up to its original size, click on the icon
    ./TBL_MGT_12.jpg  in server client mode, or again on the upper right corner of the section in Web mode.<BR/></LI></UL><UL><LI>When a grid has too many columns to be displayed on the screen, an horizontal scroll bar is displayed at the bottom of the grid. It is then important to use the cursor and click on the scroll arrows in order to visualize the information that cannot be displayed. <BR/>It is possible to lock the scrolling of one or several columns on the left of the screen in order to freeze their display when the user scrolls through the following columns is done.<BR/><BR/>This lock is defined as a fixed lock (in the screen's grid section) or in the setup screens (for instance, transactions, according to the different functioning modules and the <A href=inquiries).
  • The same way, when a grid has too many lines to be displayed on the screen, an vertical scroll bar is displayed on the right side of the grid.

Line change and partial display

The Adonix technology software load in memory all the grid lines. Should heavy documents be loaded, the user should set the size of the memory dedicated to a work station accordingly.
Nevertheless, for optimization purposes, it is possible to limit the loading of grid to a limited number of lines as long as the user is not in inquiry mode via the ADXLIG user parameter. This way, it is possible to visualize rapidly a range of records that contain heavy grids and the system does not slow down.
When the grid is not totally filled, the icon ./TBL_MGT_13.jpg in client server mode or the icon ./TBL_MGT_14.jpg in web mode is displayed in the first cell at the upper left corner of the grid. The complete loading of the grid can be obtained by using a simple right click on this icon, by switching to the entry mode or by moving the vertical scrollbar.

Sort columns

The grid lines can be sorted by simply right clicking in the column's header (descending order / ascending order if the user clicks again). A pictogram is then applied on the column which lines have been sorted. This is this pictogram ./TBL_MGT_03.jpg when the lines are sorted in descending order. It is reversed when the sort is done in ascending order

When the grid is sorted:

  • The upper left cell has the following pictogram: ./TBL_MGT_02.jpg.
    The sort can be cancelled by clicking. The lines are then sorted by sequential number.
  • The focus can be set on one of the cell simply by clicking. If the user switches to entry mode on the cell (with a double click, an entry or the), the grid is sorted again automatically according to the lines' numbers because the entry in a grid always follows an order. On the contrary, the cursor remains on the line number on which it was placed after the sort.

Record mode

This mode can be accessed when the user uses the focus on a grid lien via the right click and only in client server mode. It can be used to visualize and enter each line as a record as the following:

./TBL_MGT_07.gif

The two first icons located at the top of the screen can be used to insert a line or delete the current line; the radio buttons can be used to change line. The fields are entered in record mode just as they were entered in the grid.

It should be noted that it is possible to open the record mode by default when entering the grid.

Graphic display

In a grid, it is possible to represent the value of a given column in a graphic, provided at least this one column is numeric.
This presentation is used a lot is the inquiry screens.
The display of the presentation can be settled or not; it can be display along with the grid (on the right, on the left, above, under), or alternately in the same place as the grid.
When the grid and the graph are displayed alternately, it is necessary to click on the following icon to switch from one mode to the other: ./TBL_MGT_01.jpg  in client server mode, or ./TBL_MGT_10.jpg  in web mode. It is located on the upper left corner of the grid.

For more information on the use of graphic dynamics, please refer to: Graphic representation.

Search

This function can be accessed via right click on the column or via the following keys combined  .

It is used to open window in order to enter the text to search for and there is the possibility to specify the search direction (up or down) and indicate if it is a entire word and if the search should be case sensitive.

The search is carried out in all the columns, starting from the current cell, from left to right then up > down and down > up according to the direction indicated.
The focus is placed on the first column that contains the text that has been searched for. It is then possible to look for the next occurrence via the and for the previous occurrence via the  .

Excel export

This function can be accessed by right click on the column.

It is used to open an entry window which suggests to enter a title, a tab name and is used to launch via a button.

If it is done, an Excel file is generated with the following default characteristics:

  • all columns and lines of the grid are displayed.
  • the grid is prefixed by an header which contains automatic filters.
  • all numerical columns have a total at the bottom of the grid.

It is also possible to change the characteristics of the Excel file, via the following key: . A window with four tabs is then displayed. It can be used to modify the default characteristics of the Excel file. The button is used to save corresponding setups by giving a name to the memo and the button is used to call back a memo by indication its name. The memo called STD, if it exists, is loaded by default when the Excel export function is launched.

The information entered is as follows :

Tab Parameters

Fields

The following fields are included in this window :

Block number 1

  • Export column titles (field COLTIT)

 

  • Create column filter (field FILCOL)

 

  • Create totals line (field LIGCUM)

 

  • Export time stamps (field COMFOOT)

 

  • Line colors (field ALTERNAT)

 

Block number 2

  • Pivot table (field TABDYN)

 

  • Design (field DESIGN)

 

Block number 3

  • field IMAG

 

Close

This tab is used to define global options of the created grid (totals, filters, colors) and to specify if the grid will be a simple or pivot table. In that case, the user can chose predefined styles by entering a local menu. The preview of the style is displayed next to it.

Color tab

Fields

The following fields are included in this window :

 

  • field VISTIT

 

 

  • field VISINTH

 

 

  • field VISVALH

 

 

  • field VISCOL

 

 

  • field VISALT

 

 

  • field VISALT1

 

 

  • field VISCUM

 

 

  • field VISFOOT

 

Close

In that tab, there are styles used to display various data which appear in the Excel file created by the export.

These styles are used to descript the font and size of characters, as well as their color and the background color for cells.

Grid tab

Fields

The following fields are included in this window :

Grid Fields

  • To export (field ASELCH)

 

  • Order (field ORDCH)

 

  • Field (field DESIGCH)

 

  • Pivot type (field DYNCH)

 

  • Total (field CUMCH)

 

  • Code (field NAMCH)

 

 

  • Condition (field CONCH)

 

 

  • Formula (field FORMULCH)

 

Close

In that tab, there is the list of grid fields. The display and the type of display of these fields can be specified via a range of attributes.

Introduction tab

Fields

The following fields are included in this window :

Grid Comments

  • To export (field ASEL)

 

  • Field (field DESIG)

 

  • Code (field NAM)

 

  • Expression (field EXPG)

 

Close

This tab is used to define "introduction" fields that will be exported before the grid and that are used to recall a context in the Excel tab. These fields come from the header screen (if there are any), list sections of the same tab as the one where the grid is exported. No field is selected by default.

Technical annex

During the Excel export; the process opens the masks called AEXP1, AEXP2, AEXP4, and AEXP5 with the following abbreviations AEY1, AEY2, AEY4 and AEY5. Then, it initializes values in masks by considering by default:

  • styles using the header are AEXPEXCTIT, AEXPEXCTIT, AEXPEXCHCO, AEXPEXCHVA, AEXPEXCTCO, AEXPEXC1, AEXPEXC2, AEXPEXCUM, AEXPEXCFOO

    If these styles do not exist, they are created automatically with the following default values:
    • AEXPEXCTIT   : font-size:15pt;font-weight:bold;font-style:normal;background-color:#008000
    • AEXPEXCHCO : font-weight:bold;font-style:normal;background-color:#008000
    • AEXPEXCHVA: font-style:normal;background-color:#80FF80
    • AEXPEXCTCO  : font-weight:bold;font-style:normal;background-color:#008040
    • AEXPEXC1       : font-style:normal;background-color:#FEFB81
    • AEXPEXC2       : font-style:normal;background-color:#C8FA85
    • AEXPEXCUM    : font-size:11pt;font-weight:bold;font-style:normal;background-color:#008040
    • AEXPEXCFOO  : STYRES=";font-weight:normal;font-style:italic;background-color:#C7E39B
  • the title given at the top of the Excel file is the name of the window from which the export has been launched.
  • all fields from the grid are displayed by default
  • all numerical fields result in a total.

Three entry points are defined in order to chose, by programmation, option more suited for particular grid data or to control the export execution. These entry points are called successively in the standard program of the current function in the vertical program (if it exist) and in the specific program (if it exists). The three entry points defined correspond to the following values of ACTION variable:

  • "EXCINI" : in the export window initialization. The following variable can be used:
    • BOIT : name of the window which has triggered the export
    • MASK1 : name of the mask that has triggered the export
    • ABRMASK1 : mask abbreviation
    • NBASPAG : name of the field that has the focus when the export is launched

It is possible to overload these values in the entry point, knowing that if the export program does not confirm that the NBASPAG field belongs to a grid, it will not be performed.

  • "EXCPAR" : at the end of screen filling, setup creens from the context (window, mask, grid to export). It is possible to modify the setup of this entry point. The content of AEY* masks can thus be modified and be taken into account at export launch.
  • "EXCLIG" : before the processing of each line to export. NOLIGT contains the number of the current line (0 à n-1). In return,
    • If FINT=1, the current line is skipped
    • If FINT=2, the use exits the line process loop

According to the context, the Excel export characteristics can thus be filled dynamically. The user can also use, of course, the reload of a memo on these setups, in a more static way. As usage will have it, the STD memo is automatically loaded if it exists.