PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
  • Overview of Table control
  • How to?
  • Creating a Table control
  • Characteristics of Table control
  • Tips
  • Vocabulary
  • Swapping
  • Table/Looper control
  • Limits
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Overview of Table control
The Table control is used to simplify the display and the input of information stored in memory or coming from a data file, a view or a query.
A Table control is contains rows and columns. The intersection between a row and a column defines a cell.
A Table control can be managed row by row, column by column or cell by cell. A Table control can be displayed horizontally or vertically.
The information displayed in a Table control can:
  • be defined by programming: we talk of Memory Table control.
  • come from a variable: we talk of Table on source control.
  • come from a data file or from a query: we talk of Browsing Table control. Two types of browsing Table controls are available:
    • Browsing Table controls with direct access: the browsing Table control directly handles the records found in the query or in the data file.
    • Browsing Table controls loaded in memory: the browsing Table control handles the data file records loaded in memory (optimized browsing Table control).
Notes:
  • WEBDEV - Server codeWEBDEV - Browser code The Table controls can be multiselection
  • WEBDEV - Server codeWEBDEV - Browser code You can create Table controls with different operating modes:
    • Table control in classic mode.
    • AJAX Table control. See AJAX Table control for more details.
    • Versions 19 and later
      Table control in browser mode.
      New in version 19
      Table control in browser mode.
      Table control in browser mode.
Versions 16 and later
Linux The Table control is now available in Linux for WINDEV.
New in version 16
Linux The Table control is now available in Linux for WINDEV.
Linux The Table control is now available in Linux for WINDEV.
How to?

Creating a Table control

To create a Table control:
  1. In the window or page editor, click (or select "Insert .. Control .. Table").On the "Creation" pane, in the "Data" group:
    • WEBDEV - Server code expand "Table" and select "Table".
  2. Click the position where the control will be created in the window or page. The wizard for creating a Table control is automatically started.
  3. Answer the questions and validate the control creation.
To display the control characteristics, select "Description" from the popup menu of control. Two types of information can be viewed:
  • the information regarding the entire Table control (all you have to do is select the name of the control).
  • the information regarding each of the columns (all you have to do is select the name of a column).
Notes:
  • To easily create a browsing Table control from a data file described in the data model editor, all you have to do is Drag and Drop the selected data file into the "Project explorer" pane or into the "Analysis" pane.
  • To easily create a Table control on source from array variables found in the current window or in the current page, all you have to do is Drag and Drop the selected variable into the "Project explorer" pane.

Characteristics of Table control

In the characteristics of Table control, you have the ability to specify:
    For more details, see:

    Tips

    • The height of the rows in the Table control is too small in the editor? all you have to do is use the mouse to increase the height of the table rows. This trick is very useful for the multiline columns and the container columns.
    • Versions 15 and later
      You have the ability to quickly duplicate a column. To do so:
      1. Display the description window of Table control.
      2. Select the column to duplicate.
      3. Click "Duplicate".
      New in version 15
      You have the ability to quickly duplicate a column. To do so:
      1. Display the description window of Table control.
      2. Select the column to duplicate.
      3. Click "Duplicate".
      You have the ability to quickly duplicate a column. To do so:
      1. Display the description window of Table control.
      2. Select the column to duplicate.
      3. Click "Duplicate".
      You have the ability to quickly duplicate a column. To do so:
      1. Display the description window of Table control.
      2. Select the column to duplicate.
      3. Display the popup menu of the column and select "Duplicate column"'.
        Note: This option is also available in the "New" drop-down menu.
    Note: The height specified for the first row of the Table control is applied to all other control rows.
    Vocabulary
    To easily handle a Table control, you must be familiar with the following vocabulary:
    NameDefinition
    Selection barUsed to view the selected element. A specific color is used in most cases.
    Browsing Table controlThe Table control is based on a data file or on a query. The control elements correspond to the file records.
    Memory Table controlThe Table control is not based on a data file or on a query. The elements displayed in the control are defined by the developer (by programming).
    Single-selection Table controlThe user can select a single element in the Table control.
    Multiselection Table controlThe user can select several elements at the same time in the Table control (via the Ctrl key).
    Table on source controlThe Table control is based on a WLanguage variable. The elements displayed in the control correspond to the data found in the variable.
    Swapping

    Table/Looper control

    A Table control can be automatically transformed into a Looper control:
    1. Select the Table control to transform.
    2. Select "Control .. Swap .. Table to Looper".On the "Modification" pane, in the "Transformations" group, expand "Refactoring and swapping" and select "Table to Looper".
    Limits
    Related Examples:
    The memory Table control Unit examples (WINDEV): The memory Table control
    [ + ] Using a memory table in an application:
    - Clear a memory table
    - Fill a row in the memory table
    - Select a row
    - Sort a memory table
    - Delete a row from the memory table
    The Table/TreeView Table control (Progress Bar columns) Unit examples (WINDEV): The Table/TreeView Table control (Progress Bar columns)
    [ + ] Using a Progress Bar column as well as the ..TextProgressBar property in a Table or TreeView Table control
    WD DataBinding Training (WINDEV): WD DataBinding
    [ + ] The "WD DataBinding" example explains how to link a control and a WLanguage variable.

    This example includes two windows:
    - A first window presents a simple link between the controls and a composite variable.
    - A second window presents a link between a table control and a WLanguage class as well as the link between the table and a detailed form
    The Ajax Table control Unit examples (WEBDEV): The Ajax Table control
    [ + ] This example explains how to use the Ajax tables. This example allows you to:
    - Access the content of a table element in browser code
    - Clear the table
    - Fill the table
    - Select a row
    - Sort the table
    - Delete the selected row
    The Ajax Table control in PHP Unit examples (WEBDEV): The Ajax Table control in PHP
    [ + ] This example explains how to use the Ajax tables in PHP.
    The following topics are explained:
    - Access the content of a table element in browser code (using the AjaxExecuteAsynchronous function)
    - Delete the table content
    - Fill the table
    - Select a row
    - Delete a row
    The memory Table control Unit examples (WEBDEV): The memory Table control
    [ + ] This example explains how to use a memory table in a WEBDEV application and it allows you to:
    - Clear a memory table
    - Fill a row in the memory table
    - Select a row
    - Sort a memory table
    - Delete a row from the memory table
    The memory Table control Unit examples (WINDEV Mobile): The memory Table control
    [ + ] Using a memory table in an application:
    - Clear a memory table
    - Fill a row in the memory table
    - Select a row
    - Sort a memory table
    - Delete a row from the memory table
    Pocket Attendance Mobile (WINDEV Mobile): Pocket Attendance
    [ + ] This application is an attendance manager. It allows you to list the persons who attended a meeting.
    The database is previously filled with the list of registered persons.
    A bar code reader can be used to read the identifiers of the persons.
    The following topics are presented in this example:
    1/ the click performed on a table column
    2/ the use of a browsing table
    Minimum version required
    • Version 9
    This page is also available for…
    Comments
    Click [Add] to post a comment