PC SOFT

AYUDA EN LÍNEA
DE WINDEV, WEBDEV Y WINDEV MOBILE

  • Use conditions
  • Branch to collapse
  • Selection bar
  • Runtime speed for the TreeView Table controls
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReportes y ConsultasCódigo de Usuario (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Código Navegador
WINDEV Mobile
AndroidWidget Android iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Otros
Procedimientos almacenados
TableCollapse (Function)
 
Collapses:
  • WINDEVWEBDEV - Código ServidorWindows MobilePHP a branch that was previously expanded in a TreeView Table control. The "child" nodes are no longer visible in the TreeView Table control. The child nodes remain in their previous status (collapsed or expanded).
  • a break that was previously expanded in a Table control. The break elements are no longer visible in the Table control.
  • Versiones 22 y posteriores
    WINDEV a detailed window displayed for a row. See Managing the details of a table row for more details.
    Nueva funcionalidad versión 22
    WINDEV a detailed window displayed for a row. See Managing the details of a table row for more details.
    WINDEV a detailed window displayed for a row. See Managing the details of a table row for more details.
Reminder: At run time, a node is collapsed when the "+" sign is found in front of the name of the node.
WEBDEV - Código ServidorJavaPHP The breaks are not available on the Table controls in this version.
Java The breaks are not available on the Table controls in this version.
Versiones 18 y posteriores
PHP This function is now available for the TreeView Table controls in the PHP sites.
WEBDEV - Código ServidorWindows This function is now available for the TreeView Table controls in the WEBDEV sites in Windows.
WEBDEV - Código ServidorLinux This function is now available for the TreeView Table controls in the WEBDEV sites in Linux.
Nueva funcionalidad versión 18
PHP This function is now available for the TreeView Table controls in the PHP sites.
WEBDEV - Código ServidorWindows This function is now available for the TreeView Table controls in the WEBDEV sites in Windows.
WEBDEV - Código ServidorLinux This function is now available for the TreeView Table controls in the WEBDEV sites in Linux.
PHP This function is now available for the TreeView Table controls in the PHP sites.
WEBDEV - Código ServidorWindows This function is now available for the TreeView Table controls in the WEBDEV sites in Windows.
WEBDEV - Código ServidorLinux This function is now available for the TreeView Table controls in the WEBDEV sites in Linux.
Versiones 20 y posteriores
WEBDEV - Código Navegador This function is now available in Browser code.
PHP This function is now available for the Table controls in the PHP sites.
WEBDEV - Código ServidorWindows This function is now available for the Table controls in the WEBDEV sites in Windows.
WEBDEV - Código ServidorLinux This function is now available for the Table controls in the WEBDEV sites in Linux.
Nueva funcionalidad versión 20
WEBDEV - Código Navegador This function is now available in Browser code.
PHP This function is now available for the Table controls in the PHP sites.
WEBDEV - Código ServidorWindows This function is now available for the Table controls in the WEBDEV sites in Windows.
WEBDEV - Código ServidorLinux This function is now available for the Table controls in the WEBDEV sites in Linux.
WEBDEV - Código Navegador This function is now available in Browser code.
PHP This function is now available for the Table controls in the PHP sites.
WEBDEV - Código ServidorWindows This function is now available for the Table controls in the WEBDEV sites in Windows.
WEBDEV - Código ServidorLinux This function is now available for the Table controls in the WEBDEV sites in Linux.
Versiones 22 y posteriores
Android This function is now available for the Table controls in the Android applications.
iPhone/iPad This function is now available for the Table controls in the iPhone/iPad applications.
Nueva funcionalidad versión 22
Android This function is now available for the Table controls in the Android applications.
iPhone/iPad This function is now available for the Table controls in the iPhone/iPad applications.
Android This function is now available for the Table controls in the Android applications.
iPhone/iPad This function is now available for the Table controls in the iPhone/iPad applications.
Ejemplo
WINDEVWEBDEV - Código ServidorWindows MobilePHP
// Collapses the selected branch in the TreeView Table control
TableCollapse(TVT_Schedule)
WINDEVWEBDEV - Código ServidorWindows MobilePHP
// Collapses the "TVT_Schedule" TreeView Table control
TableCollapse(TVT_Schedule, 1)
// Equivalent to: TableCollapseAll(TVT_Schedule)
WINDEVWEBDEV - Código ServidorWindows MobilePHP
// Collapses the specified branch in the TreeView Table control
TableCollapse(TVT_Schedule, "MyRoot" + TAB + "MyBranch")
// Collapses the break of the current row in the "TABLE_Break" Table control
TableCollapse(TABLE_Break, TABLE_Break)
Sintaxis
WINDEVWEBDEV - Código ServidorWindows MobilePHP

TreeView Table: Collapsing a branch while specifying the row number Ocultar los detalles

TableCollapse(<TreeView Table control> [, <Row number>])
<TreeView Table control>: Control name
Name of TreeView Table control to use.
<Row number>: Optional integer
Number of the row containing the branch to collapse. The branch found in the current row is collapsed if this parameter is not specified.
WINDEVWEBDEV - Código ServidorWindows MobilePHP

TreeView Table: Collapsing a branch while specifying its name Ocultar los detalles

TableCollapse(<TreeView Table control> [, <Branch name>])
<TreeView Table control>: Control name
Name of TreeView Table control to use.
<Branch name>: Optional character string (with quotes)
Name of branch to collapse. This parameter has the following format:
"<Name of root>" + TAB + ["<Name of 1st node>" + TAB + ...
["<Name of 2nd node>" + TAB + [...]]]"<Branch name>"
A WLanguage error occurs if this parameter does not correspond to an existing branch.
The branch found in the current row is collapsed if this parameter is not specified.
If two branches correspond to the specified path, only the first one is collapsed.
WINDEVReportes y ConsultasWindows MobileCódigo de Usuario (UMC)

Table with breaks: Collapsing a break Ocultar los detalles

TableCollapse(<Table control> [, <Row number> [, <Name of break>]])
<Table control>: Control name
Name of Table control to use. This control must have one or more breaks. Otherwise, this function has no effect.
<Row number>: Optional integer
Number of the break row to collapse. This number must corresponds either to the number of the current row or to the number of the first row of break to collapsed. If this parameter is not specified, the break of current row is collapsed.
<Name of break>: Optional character string
Name of break to collapse. This parameter must be specified in case of nested breaks. It allows the break that will be collapsed to be defined. By default, no break is collapsed if the breaks are nested.

Table with breaks: Collapsing a break Ocultar los detalles

TableCollapse(<Table control> [, <Row number> [, <Name of break>]])
<Table control>: Control name
Name of Table control to use. This control must have one or more breaks. Otherwise, this function has no effect.
<Row number>: Optional integer
Number of the break row to collapse. This number must corresponds either to the number of the current row or to the number of the first row of break to collapsed. If this parameter is not specified, the break of current row is collapsed.
<Name of break>: Optional character string
Name of break to collapse. This parameter must be specified in case of nested breaks. It allows the break that will be collapsed to be defined. By default, no break is collapsed if the breaks are nested.
Versiones 22 y posteriores
WINDEV

Table and treeview table: collapsing a detailed window Ocultar los detalles

TableCollapse(<Table control> [, <Row number>])
<Table control>: Control name
Name of Table or TreeView Table control to use.
<Row number>: Optional integer
Number of the row whose details must be collapsed. If this parameter is not specified, the details of the current row are collapsed.
Nueva funcionalidad versión 22
WINDEV

Table and treeview table: collapsing a detailed window Ocultar los detalles

TableCollapse(<Table control> [, <Row number>])
<Table control>: Control name
Name of Table or TreeView Table control to use.
<Row number>: Optional integer
Number of the row whose details must be collapsed. If this parameter is not specified, the details of the current row are collapsed.
WINDEV

Table and treeview table: collapsing a detailed window Ocultar los detalles

TableCollapse(<Table control> [, <Row number>])
<Table control>: Control name
Name of Table or TreeView Table control to use.
<Row number>: Optional integer
Number of the row whose details must be collapsed. If this parameter is not specified, the details of the current row are collapsed.
Observaciones

Use conditions

TableCollapse can be used on:
  • WINDEVWEBDEV - Código ServidorWindows MobilePHP a TreeView Table control.
  • a memory Table control.
  • a browsing Table control loaded in memory.
  • WEBDEV - Código ServidorPHP an Ajax Table control or a classic Table control.
  • WEBDEV - Código Navegador a Table control in browser mode.
This function cannot be used on the browsing Table controls (direct access).

Branch to collapse

TableCollapse has no effect:
TreeView Table controlTable control with breaks
  • if the branch to collapse is not found.
  • if the branch to collapse is a leaf.
  • if the branch to collapse is already collapsed.
  • if the Table control contains no break.
  • if the Table control contains several breaks and if the break to collapse is not specified.
  • if no row is selected in the Table control and if <Row number> is not specified.
Note for the TreeView Table controls: If <Row number> or <Branch name> corresponds to the branch contained in the first row, the entire hierarchy of the TreeView Table control is collapsed (equivalent to TableCollapseAll).

Selection bar

For the TreeView Table controls:
  • If the selection bar was positioned on one of the elements of the node to collapse, the bar is positioned on the collapsed node after the call to TableCollapse.
  • The modification code is called whenever the selection bar is moved. If two levels are collapsed and if the selection bar is positioned on the higher node, the modification codes of each level are run.
For the Table controls with breaks, the selection bar is not modified. It stays on the current element even if the break is collapsed.

Runtime speed for the TreeView Table controls

The runtime speed of syntax 1 is faster than the runtime speed of syntax 2.
Componente : wd240obj.dll
Versión mínima requerida
  • Versión 11
Esta página también está disponible para…
Comentarios
Haga clic en [Agregar] para publicar un comentario