AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Este contenido se ha traducido automáticamente.  Haga clic aquí  para ver la versión en inglés.
Ayuda / WLanguage / Funciones WLanguage / Controles, páginas y ventanas / Funciones Tabla TreeView
  • Use conditions
  • Branch to expand
  • Selection bar
  • Runtime speed for the TreeView Table controls
WINDEV
WindowsLinuxJavaReportes y ConsultasCódigo de Usuario (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Código Navegador
WINDEV Mobile
AndroidWidget Android iPhone/iPadIOS WidgetApple WatchMac Catalyst
Otros
Procedimientos almacenados
Expands:
  • WINDEVWEBDEV - Código ServidorPHP a branch that was previously collapsed in a TreeView Table control. The "child" nodes are visible in the control.
  • a break that was previously collapsed in a Table control. The break elements are visible in the control.
  • WINDEV a detailed window displayed for a row. For more details, see Managing the details of a row in a Table control.
Reminder At runtime, a node is unrolled when the "-" sign precedes the node name.
Java Breaks are not available for Table controls in this version.
iPhone/iPad The syntax used to manage breaks is now available for Table controls in iPhone/iPad applications.
Ejemplo
WINDEVWEBDEV - Código ServidorPHP
// Expands the selected branch in the TreeView Table control
TableExpand(TVT_ScheduleTable)
WINDEVWEBDEV - Código ServidorPHP
// Expands the entire TreeView Table control
TableExpand(TVT_ScheduleTable, 1)
// Equivalent to: TableExpandAll(TABLEH_TablePlanning)
WINDEVWEBDEV - Código ServidorPHP
// Expands the specified branch in the TreeView Table control
TableExpand(TVT_ScheduleTable, "MyRoot" + TAB + "MyBranch")
Sintaxis
WINDEVWEBDEV - Código ServidorPHP

TreeView Table control: Unroll a branch by specifying the line number Ocultar los detalles

TableExpand(<TreeView Table control> [, <Row number>])
<TreeView Table control>: Control name
Name of the TreeView Table control to be used.
<Row number>: Optional integer
Number of the row containing the branch to expand. The branch found in the current row is expanded if this parameter is not specified.
WINDEVWEBDEV - Código ServidorPHP

TreeView Table control: Unroll a branch by specifying its name Ocultar los detalles

TableExpand(<TreeView Table control> [, <Branch name>])
<TreeView Table control>: Control name
Name of the TreeView Table control to be used.
<Branch name>: Optional character string
Name of branch to expand. This parameter has the following format:
"<Root name>" + TAB + ["<Name of 1st node>" + TAB + ...
["<Name of 2nd node>" + TAB + [...]]]"<Leaf name>"
A WLanguage error occurs if this parameter does not correspond to an existing branch.
The branch found in the current row is expanded if this parameter is not specified.

Table control with breaks: Unroll a break Ocultar los detalles

TableExpand(<Table control> [, <Row number> [, <Break name>]])
<Table control>: Control name
Name of the Table control to be used. This control must have one or more breaks. Otherwise, this function has no effect.
<Row number>: Optional integer
Number of the row whose break will be expanded. This number must correspond either to the number of the current row, or to the number of the first row of the break to expand. If this parameter is not specified, the break of current row is collapsed.
<Break name>: Optional character string
Name of the break to be expanded. This parameter must be specified in case of nested breaks. It is used to define the break that will be expanded. By default, no break is expanded if the breaks are nested.
WINDEV

Table and hierarchical table: Unrolling a detail window Ocultar los detalles

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

Use conditions

TableExpand can be used on:
  • WINDEVWEBDEV - Código ServidorPHP a TreeView Table control.
  • a Table control populated programmatically.
  • a Table control with in-memory data source.
  • WEBDEV - Código ServidorPHP a Table control in "Server" or "Server + AJAX" mode.
  • WEBDEV - Código Navegador a Table control in "Browser" mode.
This function cannot be used on the Table controls based on a data file (direct access).

Branch to expand

TableExpand 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 expand is not specified.
  • if no row is selected in the Table control and if <Row number> is not specified.

Remarks for the TreeView Table controls:
  • If <Row number> or <Branch name> corresponds to the branch in the first row, the entire hierarchy of the TreeView Table control is expanded (equivalent to TableExpandAll).
  • When TableExpand is called, if the specified branch has a procedure associated via the AddChildDelayed property, this procedure will be executed.

Selection bar

TableExpand does not change the position of the selection bar.

Runtime speed for the TreeView Table controls

The runtime speed of syntax 1 is faster than the runtime speed of syntax 2.
Clasificación Lógica de negocio / UI: Código UI
Componente: wd300obj.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

Última modificación: 27/03/2025

Señalar un error o enviar una sugerencia | Ayuda local