PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Use conditions
  • Special cases
  • Tip for the browsing Table and Treeview Table controls
  • Native SQL Server Access
  • Various
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
Refreshes the display of a Table or TeeeView Table control from a given position:
  • a browsing Table control: the modifications performed in the linked data file are applied to the control.
  • a memory Table control: the calculated columns are re-calculated.
Versions 16 and later
Linux This function is now available for the WINDEV applications in Linux.
New in version 16
Linux This function is now available for the WINDEV applications in Linux.
Linux This function is now available for the WINDEV applications in Linux.
Versions 18 and later
WEBDEV - Server codePHP This function can now be used to handle the TreeView Table controls in the WEBDEV and PHP sites.
New in version 18
WEBDEV - Server codePHP This function can now be used to handle the TreeView Table controls in the WEBDEV and PHP sites.
WEBDEV - Server codePHP This function can now be used to handle the TreeView Table controls in the WEBDEV and PHP sites.
Versions 20 and later
Android This function is now available for the Android applications.
iPhone/iPad This function is now available for the iPhone/iPad applications.
New in version 20
Android This function is now available for the Android applications.
iPhone/iPad This function is now available for the iPhone/iPad applications.
Android This function is now available for the Android applications.
iPhone/iPad This function is now available for the iPhone/iPad applications.
Example
// Refresh the "TABLE_ProductTable" control from the beginning
TableDisplay(TABLE_ProductTable, taStart)
Syntax
TableDisplay(<Table Control> [, <Position>])
<Table Control>: Control name
Name of control to refresh. This control can correspond to:
  • a Table control,
  • a TreeView Table control.
If this parameter corresponds to an empty string (""), the control to which the current process belongs is refreshed.
<Position>: Integer, character or constant (optional)
Indicates the start position for the refresh. If this parameter is not specified:
  • For a browsing control, the function behaves like if the taInit constant was passed in parameter.
  • For a memory control, no effect.
This parameter can correspond to:
  • An integer. The refresh is performed from this position. The selected row is not modified.
    For a browsing control, the display process of the <Position> row is run. The current element in the control is the same as the current record in the file.
    For a memory control, the <Position> row is redisplayed.
  • A character or a constant:
    Browsing Table or TreeView Table controlTable control or browsing Table control loaded in memoryMemory control
    taStart
    (Default value)
    • Refreshes the control while being positioned at the start.
    • The first control row is selected. This row corresponds to the first record.
    No effect.No effect.
    taCurrentSelection
    • Refreshes the control from the position of the selection bar.
    • The position of selection bar is not modified. The current record in the file will correspond to the record selected in the control (after the call to TableDisplay).
    PHP This constant is not available.
    Versions 16 and later
    PHP This constant is available in PHP.
    New in version 16
    PHP This constant is available in PHP.
    PHP This constant is available in PHP.
    • Redisplays the control while re-initializing the values of calculated columns.
    • The selected row is unchanged.
    • Redisplays the control while re-calculating the values of calculated columns.
    • The selected row is unchanged.
    taCurrentRecord
    • Re-runs the linked query if necessary.
    • Takes into account the records added, modified or deleted by other computers.
    • Selects the current record (if the table browse is performed on a unique key). If the current record is deleted or if it does not correspond to the filter, selects the next record that is not deleted.
      If duplicates are found on the search item, the row selected among the duplicates will be undefined.
    • The scrollbar position is stored as long as the selection remains visible.
    • Runs the beginning of initialization and the end of initialization, then the selection process of selected row (even if it is not modified).
    AndroidiPhone/iPadJavaPHP This constant is not available.
    No effect.No effect.
    taCurrentFirst
    • Refreshes the control from the current record in the file.
    • The first control row is selected. This row corresponds to the current record.
    • Redisplays the control while recalculating the values of calculated columns.
    • The selected row is unchanged.
    taInit
    • Runs the initialization codes of control (initialization code and end of initialization code).
    • Runs the initialization code of columns found in the control.
    • Fills the control.
    • The first row of Table control is selected. This row corresponds to the current record at the end of initialization code of control.
    No effect.No effect.
    taPrevious
    • Refreshes the control while being positioned at the beginning of control of previous page (same as using the pager to access the previous page).
    • The first visible control row is selected. This row corresponds to the current record.
    WINDEVAndroidiPhone/iPadWindows Mobile This constant is not available.
    No effect.No effect.
    taReExecuteQuery
    • Re-runs the query linked to the control. See Table control and queries for more details.
    • Refreshes the control while being positioned at the beginning of control.
    • The first control row is selected. This row corresponds to the first record.
    Caution: Only the query linked to the control is run. If specific options have been specified by HExecuteQuery (hModifyFile for example), these options are ignored.
    PHP This constant is not available.
    Versions 16 and later
    PHP This constant is now available.
    New in version 16
    PHP This constant is now available.
    PHP This constant is now available.
    No effect.No effect.
    taNext
    • Refreshes the control while being positioned at the beginning of the Table control of the next page (same as using the pager to access the next page).
    • The first visible control row is selected. This row corresponds to the current record.
    WINDEVAndroidiPhone/iPadWindows Mobile This constant is not available.
    No effectNo effect.
Remarks

Use conditions

TableDisplay can be used on:
  • a browsing or memory control.
  • a single-selection or multi-selection control.
WEBDEV - Server code The page containing the control is refreshed.
WEBDEV - Server codePHP Reminder: The multi-selection controls are available in Ajax only.
WEBDEV - Server codePHP Reminder: The multi-selection is not available for the "classic" Table controls.
Versions 20 and later
AndroidiPhone/iPad This function is available for the Table controls only. The TreeView Table control is not available.
New in version 20
AndroidiPhone/iPad This function is available for the Table controls only. The TreeView Table control is not available.
AndroidiPhone/iPad This function is available for the Table controls only. The TreeView Table control is not available.

Special cases

TableDisplay has no effect:
  • If <Position> is an integer and if this integer is invalid.
  • If <Position> is an integer and if the <Table Name> control is a browsing Table control with a "scrollbar with ongoing movement".
Reminder: A scrollbar with ongoing movement allows you to move the scrollbar while keeping the mouse button pressed on the scrollbar box or while keeping the arrow keys down. To create a scrollbar with ongoing movement, uncheck "Proportional scrollbar" in the "Details" tab of the description window of the control.
WEBDEV - Server code TableDisplay has no effect if <Position> is an integer and if this integer is invalid.

Tip for the browsing Table and Treeview Table controls

To display a calculation in a calculated column or to format a cell ("red background if value greater than 50" for example), use the "Row display" process of control.
WINDEVWEBDEV - Server codeAjaxUser code (UMC)Native Accesses

Native SQL Server Access

If TableDisplay handles a table linked to a data file accessed by the native SQL Server access, we recommend that you use the taCurrentFirst and taStart constants.
WINDEVWEBDEV - Server codeReports and QueriesJavaAjaxUser code (UMC)

Various

The taFromFile constant and the taCurrentFirst constant are identical. This constant is kept for backward compatibility and it is displayed in orange in the code editor.
Components
WINDEVReports and Queries wd230obj.dll
WEBDEV - Server code wd230page.dll
Windows Mobile wp230obj.dll
Java wd230java.jar
Linux wd230obj.so
Android wd230android.jar
Minimum required version
  • Version 9
This page is also available for…
Comments
Let's do the registry change.
//Aula 1153 WinDev Curso ErpAmarildo 11 - Tabela Codigo de Alteração

//Nessa aula de hoje
//vamos fazer a alteração do registro.

//En esta clase de hoy
//Vamos a cambiar el registro.

//In this class today
//Let's do the registry change.

IF TableSelect(TABLE_QRY_RELACAO_EMPRESAS)=-1 THEN RETURN
_indice is int=TableSelect(TABLE_QRY_RELACAO_EMPRESAS)
HReadSeekFirst(empresa,empresaID,TABLE_QRY_RELACAO_EMPRESAS.COL_EmpresaID)
IF HFound(empresa) THEN
Open(WIN_Form_empresa)
END
TableDisplay(TABLE_QRY_RELACAO_EMPRESAS,taReExecuteQuery)
TableSelectPlus(TABLE_QRY_RELACAO_EMPRESAS,_indice)
De matos
May 18 2017
Let's change the Add Button Code
//Nessa aula de hoje
//Vamos alterar o Codigo do Botao Incluir
//na Relacao de Empresas

//In this class today
//Let's change the Add Button Code
//In the Business Relationship

//En esta clase de hoy
//Cambiar el código del botao Incluir
//En la Relación de Empresas


HReset(empresa)
Open(WIN_Form_empresa)
TableDisplay(TABLE_QRY_RELACAO_EMPRESAS,taReExecuteQuery)
TableSelectPlus(TABLE_QRY_RELACAO_EMPRESAS,TABLE_QRY_RELACAO_EMPRESAS..Occurrence)

//Blog com Video e Exemplo

https://forum.pcsoft.fr/pt-BR/pcsoft.br.windev/2374-video-aulas-amarildo-aula-1150-windev-curso-erpamarildo/read.awp

http://windevdesenvolvimento.blogspot.com.br/2017/05/aula-1150-windev-curso-erpamarildo-8.html

https://www.youtube.com/watch?v=r87vz1ref7k

De matos
May 15 2017