ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / Developing an application or website / Controls, windows and pages / Controls: Available types / Array control
  • Handling the table cells
  • Selecting a table element
  • Displaying the table description
  • Adding a cell or a column into a table
  • Adding a cell
  • Adding a column
  • Resizing a table cell
  • Moving a table column
  • Removing or deleting a column from a table
  • Removing a column from the table
  • Deleting a column from the table
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Handling the cells of report table
Handling the table cells
The table cells can be handled individually or via the table description.
The individual operations that can be performed on the table cells are as follows:
Remark: All types of controls available in the report editor can be displayed in a table column.
Selecting a table element
To select:
  • a table cell: click the cell once. The selection handles appear around the column cells.
  • a table column:
    • click a column cell twice successively. The selection handles appear around the column cells.
    • hover the header of the column and click when the cursor turns into a vertical black arrow (pointing down). The selection handles appear around the column cells.
  • a table row: hover the left side of the row and click when the cursor turns into a horizontal black arrow (pointing to the right). The selection handles appear around the row cells.
  • all the table cells: click a cell three times successively. The selection handles appear around all the table cells.

Displaying the table description

By default, when a cell of a table is double-clicked, the cell description window appears.
To display the table description, perform one of the following actions:
  • select a cell and select "Table description" from the popup menu.
  • select a cell, then go to the "Modification" tab, click the dialog box launcher of the "Table" group.
  • click a cell three times successively (all table cells are selected) and double-click.
Adding a cell or a column into a table

Adding a cell

All types of controls available in the report editor can be added into a table. These controls can:
  • replace an existing cell in the table.
  • be added to a column (a calculation added at the bottom of column for example).
To add or replace a cell in a table:
  1. Select the control that must be added to the table.
  2. Select "Add to table" in the context menu of control. A wizard starts.
  3. Select "Add to an existing column".
  4. Select the column where the addition will be performed as well as the control position in the column (header, data or total).
  5. Validate the cell addition.

Adding a column

You have the ability to add a column to a table. This new column may (or may not) correspond to an existing control.
To add an existing control into a table as column:
  1. Select the control.
  2. You can:
    • Drag and Drop the control to the table. After confirmation, a new column is created after the existing columns. The description of the cells found in this new column corresponds to the initial control.
    • select "Add to table" in the context menu of control. A wizard allows you to specify the characteristics of this new column.
To insert a new column:
  1. You can:
    • select "Insert a column" from the popup menu of the table.
    • on the "Creation" tab, in the "Structure" group, click "Table column".
  2. Type the header caption of new column.
  3. Select (if necessary) the item linked to the new column and validate the addition of the new column.
Resizing a table cell
The entire table is resized when a table cell is resized in the report editor.
Two cases may occur:
  • Modifying the width of a cell:
    All the cells found in the column will also be resized.
    All the columns found after the column currently resized will be moved.
Before the resize operation
After the resize operation
  • Modifying the height of a cell:
    All the table cells found on the same row will be resized.
Before the resize operation
After the resize operation
To resize a cell:
  1. Select the corresponding cell in the editor. Black handles appear around the cell.
  2. Hover the black handle corresponding to the side to resize. When the mouse cursor turns into a double arrow, keep the left mouse button down and resize the cell.
  3. Release the left mouse button. The resizing is performed.
Remark: Border of the block and border of the cell
A cell can be stuck to a report block. In this case, when the cell is resized, the block will be automatically resized or not according to the cursor displayed.
The mouse cursor differs according to the element to resize:
  • a small double black arrow indicates that the cell is currently resized.
  • a large double blue arrow indicates that the block and the cell are currently resized.
Moving a table column
Moving the table columns consists in modifying the order in which the columns are displayed in the table.
Several methods can be used to move the table columns:
  • in the report currently modified: select a column cell and use the keyboard arrows (or select "Move to..." from the popup menu of the cell).
  • from the table description window: the arrow buttons are used to move the selected column.
  • "Drag and Drop" a column cell in the editor.
Removing or deleting a column from a table
A column found in a table can be:
  • removed from the table: the column cells are no longer associated with the table. These cells remain in the report and they can be handled independently of the table.
  • deleted: the cells are no longer present in the table nor in the report.

Removing a column from the table

To remove a column from the table:
  1. Select one of the cells in the column to delete (see Selecting a table cell).
  2. Use one of the following methods:
    • select "Remove from table" from the popup menu of the cell.
    • on the "Modification" tab, in the "Table" group, click "Remove from table".
      Remark: If the column to remove is not located on the left extremity of the table, the report editor proposes to automatically move the column at the beginning of the table before removing it.
  3. The different cells found in the column are independent and they can be moved in the report.

Deleting a column from the table

To delete a column from the table:
  1. Select one of the cells in the column to delete: Column header or data control.
  2. Use one of the following methods:
    • press the Del key on the keyboard.
    • select "Delete" from the popup menu of the cell.
    • on the "Modification" tab, in the "Table" group, click "Delete column".
    • select "Delete" in the table description window.
  3. The column containing the cell is deleted from the table.
Remark: If you select a cell that belongs to the total row, the column will not be deleted when this cell is deleted (only the cell will be deleted).
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 06/15/2022

Send a report | Local help